module TwoStep::DSL

Public Instance Methods

steps(*args, &block) click to toggle source
# File lib/two-step/duckpunch/example-group.rb, line 6
def steps(*args, &block)
  options =
    if args.last.is_a?(Hash)
      args.pop
    else
      {}
    end
  options[:stepwise] = true
  options[:caller] ||= caller
  args.push(options)

  describe(*args, &block)
end