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.

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
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>



-- 
Bekk Open Source
http://boss.bekk.no
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to