Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

view test case returns a different object for every call to _view

#4799
test "something on the view that needs a stub" do
  _view.stubs(:helper_method).returns("value")
  _view.method_that_calls_helper_method
end

This fails because _view returns a new object each time. This should be memoized for the duration of the test.

Patch forthcoming

Reported by David Chelimsky · June 8th, 2010 @ 08:21 PM

State: resolved
Milestone: none
Assigned to: Yehuda Katz (wycats) Yehuda Katz (wycats)
Importance: none