Sergio Bayona wrote:
> how could this test pass?
> 
> I have:
> 
> class PropertiesController < ApplicationController

...
> why zero failures? more specifically, why would :non_existing_method
> return mock_property? and why would the assigns[:property] be equal to
> mock_property? did I eat some bad mushrooms?
> 
> Sergio

Ah... Maybe because of this?

  Property.should_receive(:non_existing_method).and_return(mock_property)
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to