Skip to content

Instantly share code, notes, and snippets.

@jdelStrother
Created December 30, 2013 23:33
Show Gist options
  • Select an option

  • Save jdelStrother/8190019 to your computer and use it in GitHub Desktop.

Select an option

Save jdelStrother/8190019 to your computer and use it in GitHub Desktop.
diff --git a/lib/rspec/mocks/message_chain.rb b/lib/rspec/mocks/message_chain.rb
index 97f2762..3445364 100644
--- a/lib/rspec/mocks/message_chain.rb
+++ b/lib/rspec/mocks/message_chain.rb
@@ -44,7 +44,7 @@ module RSpec
hash = chain.pop
hash.each do |k,v|
chain << k
- blk = lambda { v }
+ blk = lambda {|*args| v }
end
end
return chain.join('.').split('.'), blk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment