Displaying 1 result from an estimated 1 matches for "rootcontrollertest".
Did you mean:
hostcontrollertest
2006 Mar 16
0
UserEngine and the test environment
Hi !
I was going to write a test that asserts that my home page
controller''s index action is available for guests:
class RootControllerTest < Test::Unit::TestCase
def test_guest_access_granted_to_home_page
get :index
assert_response :success
end
end
Obviously, this test fails. If I change the dev DB, I can test in the
browser, and it works fine. But, the test DB does not contain the
necessary permissions and roles.
I...