[rspec-users] Error on nil.build

Chris Olsen lists at ruby-forum.com
Mon Feb 4 21:47:08 EST 2008

Ooops there was a typo on the method causing the error.  It should be:

It is this test that fails
it "should make the relation to the users" do
  @account.should_receive(:users)  # removed the .and_return

Is there a better way to test that the data is being loaded into the 
related models properly?
Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list