search for: bad_test

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

Did you mean: vad_test
2006 Feb 07
0
scope problems testing a helper method that calls link_to()
...ng (so as not to confuse the issue). 1) Error: test_party_link_staff(HelperControllerTest): NoMethodError: undefined method `link_to'' for #<HelperController:0xb69e32d0> ./test/functional/../../app/helpers/application_helper.rb:170:in `party_link'' ./test/functional/bad_test.rb:30:in `test_party_link_staff'' Currently we''re stubbing link_to() and checking that it gets called, which is The Wrong Way to fix the problem. We can ''include'' ActionView, ActionView::Helpers, ActionView::Helpers::UrlHelper and get past link_to (and, I think...