Class: Transpec::Syntax::Pending

Inherits:
Syntax
  • Object
show all
Includes:
Mixin::ContextSensitive, Util
Defined in:
lib/transpec/syntax/pending.rb

Constant Summary

Constants included from Util

Util::LITERAL_TYPES, Util::WHITESPACES

Instance Method Summary collapse

Methods included from Mixin::ContextSensitive

#conversion_target?

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

#conversion_target?

Methods included from Util

beginning_of_line_range, block_node_taken_by_method, chainable_source, const_name, contain_here_document?, each_backward_chained_node, each_forward_chained_node, each_line_range, expand_range_to_adjacent_whitespaces, find_consecutive_whitespace_position, first_block_arg_name, here_document?, in_explicit_parentheses?, indentation_of_line, line_range, literal?, proc_literal?, range_from_arg

Instance Method Details

#convert_deprecated_syntax!Object



20
21
22
23
24
25
26
# File 'lib/transpec/syntax/pending.rb', line 20

def convert_deprecated_syntax!
  if block_node
    unblock!
  else
    convert_to_skip!
  end
end

#dynamic_analysis_target?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/transpec/syntax/pending.rb', line 12

def dynamic_analysis_target?
  super && receiver_node.nil? && method_name == :pending
end

#should_be_in_example_group_context?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/transpec/syntax/pending.rb', line 16

def should_be_in_example_group_context?
  false
end