Thanks for your response Pat - I ended up taking the stub_chain method which got it working. For anyone interested this is my new test:
it "GET new" do @correspondence = mock_model(Correspondence) @job.stub_chain(:correspondences, :build).and_return(@correspondence) get :new, :job_id => @job assigns[:correspondence].should be_an_instance_of Correspondence end -- Posted via http://www.ruby-forum.com/. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users