[rspec-users] mock_model not stubbing model attribtues in view spec

Ashley Moran ashley.moran at patchspace.co.uk
Tue May 20 07:26:00 EDT 2008

On 20 May 2008, at 11:50, Doug Livesey wrote:

> Obviously, the view calls for a number of attributes from the
> @input_timesheet, but unless I explicitly define these in the  
> mock_model
> method, I get the following kind of error:

I'm puzzled, I thought you always had to stub methods on a mock from  
mock_model?  I don't remember the default behaviour ever being to  
ignore unknown messages?

Sorry, guess this is not a helpful post, I just wanted to know how it  
behaves for you normally.



More information about the rspec-users mailing list