]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/oauth_token_test.rb
Remove inline javascript from potlatch2 view
[rails.git] / test / models / oauth_token_test.rb
index ac10bf7fe3473b736c66e36cdc4bbb3905a02ddb..c2df0d1311b1e83e4a9434656920d31f61d935a7 100644 (file)
@@ -15,7 +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))
+    tok = RequestToken.create(:client_application => create(:client_application))
     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."