Module: Ruptr::Compat::RSpec::ExampleGroupInternal

Included in:
ExampleGroup
Defined in:
lib/ruptr/rspec/example_group.rb

Instance Method Summary collapse

Instance Method Details

#carryover_instance_variables(from, to) ⇒ Object



72
73
74
75
76
77
# File 'lib/ruptr/rspec/example_group.rb', line 72

def carryover_instance_variables(from, to)
  from.instance_variables.each do |name|
    next if from.ruptr_internal_variable?(name)
    to.instance_variable_set(name, from.instance_variable_get(name))
  end
end

#each_exampleObject



82
# File 'lib/ruptr/rspec/example_group.rb', line 82

def each_example(&) = my_examples.each(&)

#each_example_groupObject



83
# File 'lib/ruptr/rspec/example_group.rb', line 83

def each_example_group(&) = my_example_groups.each(&)

#my_example_groupsObject



80
# File 'lib/ruptr/rspec/example_group.rb', line 80

def my_example_groups = @my_example_groups ||= []

#my_examplesObject



79
# File 'lib/ruptr/rspec/example_group.rb', line 79

def my_examples = @my_examples ||= []

#need_wrap_context?Boolean

Returns:

  • (Boolean)


85
# File 'lib/ruptr/rspec/example_group.rb', line 85

def need_wrap_context? = false