Anyone know how to get assert_response to work with webrat using selenium? I keep getting
NoMethodError: undefined method `response_code' for nil:NilClass
Here's my test:
def test_basic_page_load
visit root_path
click_link "register"
assert_response 200
end
Here's the error:
==> Waiting for Selenium RC server on port 4444... Ready!
==> Waiting for rails application server on port 3001... Ready!
E
1) Error:
test_basic_page_load(UserCrudTest):
NoMethodError: undefined method `response_code' for nil:NilClass
/test/integration/user_crud_test.rb:11:in `test_basic_page_load'
Finished in 12.269964 seconds.
I'm sure it's something silly that I'm missing, but I just don't see it.... Any ideas?