module RSpec::Steps::DSL

Public Instance Methods

shared_steps(*args, &block) click to toggle source
# 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
steps(*args, &block) click to toggle source
# File lib/rspec-steps/dsl.rb, line 15
def steps(*args, &block)
  describer = Describer.new(args, {:caller => caller}, &block)
  builder = Builder.new(describer)

  builder.build_example_group
end