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

Block rescuing not working (Rails/Minitest)? #82

Open
hakunin opened this issue Mar 25, 2015 · 5 comments
Open

Block rescuing not working (Rails/Minitest)? #82

hakunin opened this issue Mar 25, 2015 · 5 comments

Comments

@hakunin
Copy link

hakunin commented Mar 25, 2015

Hi, I tried pry-rescue in my minitest setup and since it didn't seem to work I tried to use the block way of doing things.

The exception is not caught when I do Pry.rescue { } or spoon-feed the exception by Pry::rescued(e) nothing happens.

Glad to debug, anything I should look for?

@neumachen
Copy link
Contributor

What's your rspec version?

@hakunin
Copy link
Author

hakunin commented Mar 26, 2015

Hi, the project uses Minitest, not rspec.

@neumachen
Copy link
Contributor

Can you produce a sample app that exhibits this problem? Be happy to look at it.

@hakunin
Copy link
Author

hakunin commented Apr 27, 2015

Thats the thing, I bet it works on a fresh app. What I wanted to know is how to debug it on the existing one.

Feel free to close this though. Most of the time I can do withou the Pry.rescue superpowers, only when the problem is inside a gem its a real pain to vendor it just to do a few things with the code.

@neumachen
Copy link
Contributor

For an existing one it may be a due to minitest's version because the recent update for RSpec also had this issue.

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

No branches or pull requests

2 participants