You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RSpec should not be exiting with code 0 if it has failing specs.
tardis:clock[master]$ be rspec spec
............................................F..
Failures:
1) Marquee can be instantiated
Failure/Error: marquee.should be_nil
expected: nil
got: #<Marquee _id: BSON::ObjectId('50a145949972772ba9000081'), text: "Foo to the bar.">
# ./spec/unit/models/marquee_spec.rb:7:in `block (2 levels) in <top (required)>'
Finished in 5.39 seconds
47 examples, 1 failure
Failed examples:
rspec ./spec/unit/models/marquee_spec.rb:6 # Marquee can be instantiated
tardis:clock[master]$ echo $?
1
Without a DRb server running:
tardis:clock[master]$ be rspec spec
No DRb server is running. Running in local process instead ...
............................................F..
Failures:
1) Marquee can be instantiated
Failure/Error: marquee.should be_nil
expected: nil
got: #<Marquee _id: BSON::ObjectId('50a146159972772c4c000081'), text: "Foo to the bar.">
# ./spec/unit/models/marquee_spec.rb:7:in `block (2 levels) in <top (required)>'
Finished in 5.15 seconds
47 examples, 1 failure
Failed examples:
rspec ./spec/unit/models/marquee_spec.rb:6 # Marquee can be instantiated
tardis:clock[master]$ echo $?
0
RSpec should not be exiting with code
0
if it has failing specs.Without a DRb server running:
This is especially an issue in Travis, where it reports that a build has passed when it really hasn't (https://travis-ci.org/eturk/clock/jobs/3146542).
The text was updated successfully, but these errors were encountered: