Skip to content

Commit

Permalink
ruby-1.8.7 syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisMontagne committed Sep 19, 2014
1 parent 4b3bef3 commit 71307bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rspec/its.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ def should_not(matcher=nil, message=nil)
end

its_caller = caller.select {|file_line| file_line !~ %r(/lib/rspec/its) }
example(nil, *options, :caller => its_caller, &block)
options << { :caller => its_caller }
example(nil, *options, &block)

end
end
Expand Down

0 comments on commit 71307bc

Please sign in to comment.