]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/oauth_test.rb
Remove deprecated assert_blank and assert_present from tests
[rails.git] / test / integration / oauth_test.rb
index 8639c8e53ed4910b6521a1044f97346b457396c4..7ccf0917eba04b4ab07acd9c923a53b9ca3d3224 100644 (file)
@@ -1,7 +1,7 @@
 require File.dirname(__FILE__) + '/../test_helper'
 
-class OAuthTest < ActionController::IntegrationTest
-  fixtures :users, :client_applications
+class OAuthTest < ActionDispatch::IntegrationTest
+  fixtures :users, :client_applications, :gpx_files
 
   include OAuth::Helper
 
@@ -356,7 +356,7 @@ private
     params = CGI.parse(URI.parse(response.location).query)
 
     assert_not_nil params["oauth_verifier"]
-    assert_present params["oauth_verifier"].first
+    assert params["oauth_verifier"].first.present?
 
     params["oauth_verifier"].first
   end