Skip to content

Commit

Permalink
Add required metadata to Describer.new() call in shared_steps
Browse files Browse the repository at this point in the history
  • Loading branch information
IdahoEv committed Oct 18, 2015
1 parent b8ad524 commit fc0b8d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec-steps/dsl.rb
Expand Up @@ -23,7 +23,7 @@ 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, &block)
SharedSteps[name] = Describer.new(*args, {:caller => caller}, &block)
end
end
extend DSL
Expand Down

0 comments on commit fc0b8d7

Please sign in to comment.