Skip to content

Can't match rspec errors in 9.4.2.0 #7761

@jcoyne

Description

@jcoyne

In MRI 3.1, I'm able to run this rspec test where it has an implied error type of RuntimeError, however in jRuby I have to be explicit about the error type or I receive the following error:

     Failure/Error: expect { request }.to raise_error 'Verboten!'

       expected Exception with "Verboten!", got #<TypeError: exception class/object expected> with backtrace:

Similar to #7112

Using rspec 3.12.0

The code for this matcher is here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions