Skip to content

Commit

Permalink
Merge pull request #37 from nalabjp/fix-example-group-metadata
Browse files Browse the repository at this point in the history
Set the caller of `.with_them` to metadata of ExampleGroup
  • Loading branch information
joker1007 authored Aug 17, 2016
2 parents 7fe42a8 + 7b63266 commit 1766ef1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/rspec/parameterized.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ def where(*args, &b)
# end
#
def with_them(*args, &b)
opts = args.last.is_a?(Hash) ? args.pop : {}
opts[:caller] = caller unless opts[:caller]
args.push(opts)

if @parameter.nil?
@parameterized_pending_cases ||= []
@parameterized_pending_cases << [args, b]
Expand Down

0 comments on commit 1766ef1

Please sign in to comment.