search for: inputtimesheet

Displaying 1 result from an estimated 1 matches for "inputtimesheet".

Did you mean: input_timesheet
2008 May 20
4
mock_model not stubbing model attribtues in view spec
Hi -- I am just getting to grips w/ view specs, and am having an issue with mock_model not stubbing the mocked model''s attributes. For instance, I have the following: <CODE> before do @input_timesheet = mock_model( InputTimesheet ) assigns[:input_timesheet] = @input_timesheet end it "should display a table element" do render ''/input_timesheets/edit.rhtml_spec.rb'' response.should have_tag( ''table'' ) end </CODE> Obviously, the view calls for a number of attributes f...