search for: foohelpertest

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

2006 Jul 31
0
problems testing helpers - link_to and url_for don''t work...
...er::Base - so something weird is going on with trying to use StubController having to do with scope. There are also issues I''ve had in getting the controller set up to match what happens in a real request, with filters being run and what not. So I think a better solution would include: - FooHelperTest uses FooController as its controller with its filters run to simulate a request, otherwise the test state differs from production. A helper depends intimately upon its controller for things to work right, even with proper controller/view separation, so just doing a StubController doesn''t...