Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Ensure let block is not passed to super call.#827

Merged
myronmarston merged 2 commits intorspec:masterfrom
cupakromer:fix-issue-820
Mar 12, 2013
Merged

Ensure let block is not passed to super call.#827
myronmarston merged 2 commits intorspec:masterfrom
cupakromer:fix-issue-820

Conversation

@cupakromer
Copy link
Member

Fix #820. This is directly related to bug
http://bugs.ruby-lang.org/issues/8059. It seems to affect Ruby 1.9.3
but not Ruby 2.0.0. As per the notes, it is a heisenbug, so simply
looking at it causes the bug to disappear.

Force the call to super to make sure the let block is not passed in.

Fix #820. This is directly related to bug
http://bugs.ruby-lang.org/issues/8059.  It seems to affect Ruby 1.9.3
but not Ruby 2.0.0. As per the notes, it is a heisenbug, so simply
looking at it causes the bug to disappear.

Force the call to super to make sure the let block is not passed in.
@myronmarston
Copy link
Member

Thanks, @cupakromer. This looks good. Did you verify that the spec you added for this failed before you added the fix?

@myronmarston
Copy link
Member

Also, if you're up for it, please add an entry to the Changelog ... it saves me having to do that!

@cupakromer
Copy link
Member Author

Yes, it failed in 1.9.3p392 before the fix to the lib file. I'll add the Changelog entry.

@cupakromer
Copy link
Member Author

Do you want me to rebase the Changelog into the same commit?

@myronmarston
Copy link
Member

I don't particularly care.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing my typo!

myronmarston added a commit that referenced this pull request Mar 12, 2013
Ensure let block is not passed to super call.
@myronmarston myronmarston merged commit 313dc77 into rspec:master Mar 12, 2013
@myronmarston
Copy link
Member

Thanks, @cupakromer! Sorry about the delay on merging it. The travis CI build broke due to the travis VM upgrades and I've spent the last couple days getting it back to green.

@cupakromer cupakromer deleted the fix-issue-820 branch March 12, 2013 16:08
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 6, 2021
…sue-820

Ensure let block is not passed to super call.

---
This commit was imported from rspec/rspec-core@313dc77.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assigning regex with let causes spec to fail - unless the variable is invoked prior to use.

2 participants