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

1 comment

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.


Please sign in to leave a comment.