Skip to content

Conversation

@nateberkopec
Copy link
Contributor

There were a few messups here:

  • The Rails controller tests never tested a "happy case" (that is, no exceptions)
  • The Rails controller tests didn't check to see the exception they were actually catching - so the LocalJumpError went unnoticed!
  • You can't yield from the block form of around_action
  • I'm not sure why I thought class_eval was necessary here - it isn't.

Fix #773

There were a few messups here:

* The Rails controller tests never tested a "happy case" (that is, no exceptions)
* The Rails controller tests didn't check to see the exception they were actually catching - so the LocalJumpError went unnoticed!
* You can't `yield` from the block form of `around_action`
* I'm not sure why I thought class_eval was necessary here - it isn't.

Fix #773
@greysteil
Copy link
Contributor

Can confirm this fixes the issue for me 🎉

@nateberkopec nateberkopec merged commit 6a2c99d into master Oct 11, 2017
@st0012 st0012 deleted the 370-fix branch September 3, 2020 07:03
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.

3 participants