Module: ManiokBdd::RSpec::SharedSteps

Defined in:
lib/maniok_bdd/rspec/shared_steps.rb

Instance Method Summary collapse

Instance Method Details

#shared_steps(name, &block) ⇒ Object



5
6
7
8
# File 'lib/maniok_bdd/rspec/shared_steps.rb', line 5

def shared_steps(name, &block)
  ensure_shared_example_steps_name_not_taken(name)
  ::RSpec.world.shared_example_steps[name] = block
end