> 2) Chained stubs/expectations > > mock.stub!(:valid?).and_return(false) > mock.stub!(:valid?).and_return(true).after_receiving > (:save).and_return(true)
On first look, that last line is pretty hard to read. I think I understand the intention now, but I'm not sure it harmonizes with the "Clarity over Cleverness" motto. Peter _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users