[rspec-users] Possible Problem with RSpec and
aslak.hellesoy at gmail.com
Thu Nov 29 05:53:00 EST 2007
On Nov 29, 2007 11:23 AM, Stefan Magnus Landrø <stefan.landro at gmail.com> 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)
> it "should whatever" do
> pending "whatever"
> 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?
> 2007/11/28, David Chelimsky <dchelimsky at gmail.com>:
> > On Nov 28, 2007 2:38 AM, Stefan Magnus Landrø <stefan.landro at gmail.com>
> > > We saw some annoying behavior related to pending tests.
> > Can you be more specific?
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> Bekk Open Source
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users