[rspec-users] how can this pass?
James Byrne
lists at ruby-forum.com
Sun Feb 8 21:02:13 EST 2009
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/.
More information about the rspec-users
mailing list