X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e660e609661edadc1ed5ad49d6e83e936b2f91cd..b28b5509b889ce3c385349d7a68f37aa83b615cb:/test/unit/oauth_token_test.rb diff --git a/test/unit/oauth_token_test.rb b/test/unit/oauth_token_test.rb index ff0353791..9ec005c96 100644 --- a/test/unit/oauth_token_test.rb +++ b/test/unit/oauth_token_test.rb @@ -15,9 +15,7 @@ class OauthTokenTest < ActiveSupport::TestCase ## # check that an authorized token is authorised and can be invalidated def test_token_authorisation - tok = RequestToken.create({ - :client_application => client_applications(:oauth_web_app) - }, :without_protection => true) + tok = RequestToken.create(:client_application => client_applications(:oauth_web_app)) assert_equal false, tok.authorized?, "Token should be created unauthorised." tok.authorize!(users(:public_user)) assert_equal true, tok.authorized?, "Token should now be authorised."