rspec failures don't show failure location

rspec concludes with the test failing but no indication of where. This is true both when an rspec expectation is unmet, or if there is an uncaught exception in the code.



ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) rspec msg2_controller_spec.rb --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter --example "should follow happy path" --drb
Testing started at 9:52 AM ...
No DRb server is running. Running in local process instead ...
Run options: include {:full_description=>/should\ follow\ happy\ path\/}

expected: 4
got: 3

(compared using ==)

undefined method `sent_message_type' for nil:NilClass

1 example, 1 failure, 0 passed

Finished in 15.296656 seconds

Process finished with exit code 1

Comment actions Permalink

Turns out, the "RSpec::Core::MultipleExceptionError" was related to the issue. Looks like if the test body raises an exception, and there is an 

after :each do

block that also raises an exception, both get invoked and neither gets displayed on the RubyMine exception display.

Comment actions Permalink

Hello Chez,

sorry for such delay. Would it be possible to share the project where the issue is reproduced? (as far as I understood the problem is that after tests' feailure it's not possible to navigate to the test in question)


Please sign in to leave a comment.