Module: RSpec::Steps::DSL

Defined in:
lib/rspec-steps/duckpunch/example-group.rb

Instance Method Summary collapse

Instance Method Details

#steps(*args, &block) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/rspec-steps/duckpunch/example-group.rb', line 9

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