[rspec-users] [UNSOLVED] Possible Problem with RSpec

James B. Byrne byrnejb at harte-lyne.ca
Sat Nov 24 23:15:26 EST 2007

On Sat Nov 24 21:54:58 EST 2007, Pat Maddox pergesu at gmail.com wrote:

> Failed expectations are implemented using exceptions, so naturally
> if you use --trace then rake will print a backtrace.  If you don't
> want it, don't use --trace.

I do not care about the presence or absence of a trace. What I want to
know is why I get a rake failure if one of the specs fail. Surely a
specification failure is an expected outcome for at last some of the
trials.  RSpec should just report that fact and let rake exit cleanly.  I
ran the previous trial with --trace just to avoid having someone write
"please provide a trace".

C:\var\RSpec\depot>rake spec:models
(in C:/var/RSpec/depot)
NOTICE:  CREATE TABLE will create implicit sequence "products_id_seq" for
 column "products.id"
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
"products_pkey" f
or table "products"

- should have a valid image url (FAILED - 1)
- should have a description
- should have a title

'Product should have a valid image url' FAILED
expected 1 error on :image_url, got 0

Finished in 0.922 seconds

3 examples, 1 failure
rake aborted!
Command ruby -I"C:/var/RSpec/depot/vendor/plugins/rspec/lib"
--options "C:/var/RSpec/depot/config/../spec/spec.opts" failed

(See full trace by running task with --trace)

***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:ByrneJB at Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3

More information about the rspec-users mailing list