Displaying 1 result from an estimated 1 matches for "mock_event_calendar_data".
2007 Jun 19
5
Problems translating should_render from 0.8.2 to 1.0.5
...actions that render a partial (mostly for ajax calls) we need to test the locals that get passed into the template.<br><br>here''s a typical spec:<br> specify "the :start_date should equal the date passed in" do<br> @mock_event_calendar_data = mock(''Mock event_calendar_data'')<br> EventCalendarData.should_receive(:new).and_return(@mock_event_calendar_data)<br> date = Date.today<br> controller.should_render :parti...