[rspec-users] Rspec & Rails Nested Resources

Daniel C. lists at ruby-forum.com
Sun Dec 19 17:36:57 EST 2010

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)
      get :new, :job_id => @job
      assigns[:correspondence].should be_an_instance_of Correspondence

Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list