Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work around bug in 1.8.7's Method#to_proc. #641

Merged
merged 1 commit into from
Aug 28, 2014

Conversation

myronmarston
Copy link
Member

I considered keeping the Method#to_proc implementation
for other rubies (1.9+), assuming it would be faster,
but benchmarks reveal it is in fact slower.

This fixes the failure @samphippen has been running into in rspec/rspec-mocks#751.

I considered keeping the `Method#to_proc` implementation
for other rubies (1.9+), assuming it would be faster,
but benchmarks reveal it is in fact _slower_.
@fables-tales
Copy link
Member

This LGTM. Does it need a changelog entry?

myronmarston added a commit that referenced this pull request Aug 28, 2014
Work around bug in 1.8.7's `Method#to_proc`.
@myronmarston myronmarston merged commit 318cda1 into master Aug 28, 2014
@myronmarston myronmarston deleted the fix-matcher-definition-1.8.7 branch August 28, 2014 15:36
@myronmarston
Copy link
Member Author

Does it need a changelog entry?

No, the bug this fixes has never been in a released version of RSpec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants