Sam, As the .any_instance call suggests, anything ever again for the duration of the test will stub that value, the alternative is this:
Foo.any_instance.stubs(:valid?).returns(false) replace with this foo = Foo.new foo.stubs(:valid?).returns(false) HTH - Lee
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users