Module: RSpec::Steps::DSL
- Included in:
- RSpec, RSpec::Steps
- Defined in:
- lib/rspec-steps/dsl.rb
Instance Method Summary collapse
Instance Method Details
#shared_steps(*args, &block) ⇒ Object
22 23 24 25 26 27 |
# File 'lib/rspec-steps/dsl.rb', line 22 def shared_steps(*args, &block) name = args.first raise "shared step lists need a String for a name" unless name.is_a? String raise "there is already a step list named #{name}" if SharedSteps.has_key?(name) SharedSteps[name] = Describer.new(*args, {:caller => caller}, &block) end |