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

Doesn't work with expecting an error/exception #2

Open
sfbrian opened this issue Nov 3, 2015 · 0 comments
Open

Doesn't work with expecting an error/exception #2

sfbrian opened this issue Nov 3, 2015 · 0 comments

Comments

@sfbrian
Copy link

sfbrian commented Nov 3, 2015

I'm running a test where I'm expecting an exception eventually but rspec-eventually isn't working with it because it's failing due to the exception. Here's a simple example:

[1] pry()> expect {1/0}.to raise_exception(ZeroDivisionError)
=> true
[2] pry()> expect {1/0}.to eventually(raise_exception(ZeroDivisionError))
ZeroDivisionError: divided by 0
from (pry):2:in `/'
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

1 participant