On Nov 29, 2007 11:23 AM, Stefan Magnus Landrø <[EMAIL PROTECTED]> wrote: > It seems like setting up expectations in before blocks, in combination with > a pending example, makes rake return non-0 > > We had code similar to this: > > describe Model do > before do > OtherModel.should_receive (:some_method) > end > > it "should whatever" do > pending "whatever" > end > end > > Removing the expectation from the before block, fixed our problem. >
Interesting. pending actually raises a special exception that RSpec catches and reports as a P. But your OtherModel never got the expected message, so RSpec changes its mind and reports an F instead. Perhaps we should never report failures for pending examples? Aslak > Stefan > > > > 2007/11/28, David Chelimsky <[EMAIL PROTECTED]>: > > > On Nov 28, 2007 2:38 AM, Stefan Magnus Landrø <[EMAIL PROTECTED]> > wrote: > > > We saw some annoying behavior related to pending tests. > > > > Can you be more specific? > > _______________________________________________ > > rspec-users mailing list > > [email protected] > > http://rubyforge.org/mailman/listinfo/rspec-users > > > > > > > -- > Bekk Open Source > http://boss.bekk.no > _______________________________________________ > rspec-users mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
