Skip to content

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

@sfbrian

Description

@sfbrian

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 `/'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions