Displaying 1 result from an estimated 1 matches for "test_should_login_and_redirect".
2006 May 07
0
NoMethodError trying to get ApplicationHelper method from a functional test
...pers, app/apis, components, config, lib, vendor and
vendor/rails/*.
However, when I try to access my "current_project" public method, it fails
with a NoMethodError.
What is even stranger is that I can use reflection to find that the method
is indeed there. For instance, this code:
def test_should_login_and_redirect
ApplicationHelper.public_instance_methods.each do |method|
if method == "current_project"
puts "calling " + method
puts ApplicationHelper.send(method)
end
end
...
Will find the method but then when it is called, it will still complain
yeildi...