fixing auth test

Oleg committed Jun 23, 2011
commit c35206e26ab0c515519cffbe9b7149985b28477b
Showing 1 changed file with 4 additions and 4 deletions
test/integration/authentication_test.rb +4 -4
@@ @@ -4,14 +4,14 @@ class AuthenticationTest < ActionDispatch::IntegrationTest
def test_get_with_unauthorized_access
assert_equal 'ComfortableMexicanSofa::HttpAuth', ComfortableMexicanSofa.config.authentication
- get '/cms-admin/pages'
+ get '/cms-admin/sites'
assert_response :unauthorized
get '/'
assert_response :success
end
def test_get_with_authorized_access
- http_auth :get, '/cms-admin/pages'
+ http_auth :get, '/cms-admin/sites'
assert_response :success
end
@@ @@ -19,9 +19,9 @@ class AuthenticationTest < ActionDispatch::IntegrationTest
assert_equal 'ComfortableMexicanSofa::HttpAuth', ComfortableMexicanSofa.config.authentication
ComfortableMexicanSofa::HttpAuth.username = 'newuser'
ComfortableMexicanSofa::HttpAuth.password = 'newpass'
- http_auth :get, '/cms-admin/pages'
+ http_auth :get, '/cms-admin/sites'
assert_response :unauthorized
- http_auth :get, '/cms-admin/pages', {}, 'newuser', 'newpass'
+ http_auth :get, '/cms-admin/sites', {}, 'newuser', 'newpass'
assert_response :success
end
end
\ No newline at end of file