Module: TwoStep::DSL

Defined in:
lib/two-step/duckpunch/example-group.rb

Instance Method Summary collapse

Instance Method Details

#steps(*args, &block) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
# 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