class Object
Public Instance Methods
run_example_or_duplicate(original_example, test_description)
click to toggle source
# File lib/marsh_grass/rspec.rb, line 13 def run_example_or_duplicate(original_example, test_description) if !original_example.executed? # Let the original example be the first repetition that is printed original_example.metadata[:description] = test_description original_example.run else repetition = original_example.duplicate_with repetition.metadata[:description] = test_description original_example.example_group.context.add_example(repetition) end end
untag_example(example, tag)
click to toggle source
# File lib/marsh_grass/rspec.rb, line 8 def untag_example(example, tag) example.example_group.metadata.delete(tag) if example.metadata[:turnip] example.metadata.delete(tag) end