Class: Transpec::Syntax::Example
- Inherits:
-
Transpec::Syntax
- Object
- Transpec::Syntax
- Transpec::Syntax::Example
- Includes:
- RSpecDSL, Mixin::ContextSensitive, Mixin::Metadata
- Defined in:
- lib/transpec/syntax/example.rb
Constant Summary
Constants included from RSpecDSL
RSpecDSL::EXAMPLE_GROUP_METHODS, RSpecDSL::EXAMPLE_METHODS, RSpecDSL::HELPER_METHODS, RSpecDSL::HOOK_METHODS
Instance Attribute Summary
Attributes inherited from Transpec::Syntax
#node, #report, #runtime_data, #source_rewriter
Instance Method Summary collapse
- #convert_pending_to_skip! ⇒ Object
- #dynamic_analysis_target? ⇒ Boolean
- #should_be_in_example_group_context? ⇒ Boolean
Methods included from Mixin::ContextSensitive
Methods included from Mixin::Send
#arg_node, #arg_nodes, #arg_range, #args_range, #method_name, #parentheses_range, #range_after_arg, #range_in_between_receiver_and_selector, #range_in_between_selector_and_arg, #receiver_node, #receiver_range, #selector_range
Methods included from Mixin::Send::TargetDetection
Methods included from Mixin::Metadata
#metadata_key_nodes, #metadata_nodes
Methods inherited from Transpec::Syntax
#conversion_target?, #dependent_syntaxes, #expression_range, #initialize, #inspect, #parent_node, snake_case_name, standalone?, #static_context_inspector
Methods included from Collection
#all_syntaxes, #inherited, #mixins, #require_all, #standalone_syntaxes
Methods included from DynamicAnalysis
#register_dynamic_analysis_request
Constructor Details
This class inherits a constructor from Transpec::Syntax
Instance Method Details
#convert_pending_to_skip! ⇒ Object
21 22 23 24 |
# File 'lib/transpec/syntax/example.rb', line 21 def convert_pending_to_skip! convert_pending_selector_to_skip! end |
#dynamic_analysis_target? ⇒ Boolean
13 14 15 |
# File 'lib/transpec/syntax/example.rb', line 13 def dynamic_analysis_target? super && receiver_node.nil? && EXAMPLE_METHODS.include?(method_name) end |
#should_be_in_example_group_context? ⇒ Boolean
17 18 19 |
# File 'lib/transpec/syntax/example.rb', line 17 def should_be_in_example_group_context? true end |