]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/oauth_test.rb
Adjust header sizing
[rails.git] / test / integration / oauth_test.rb
index 11b874e6bed14535fe08d1f30b130e0f5d2075d2..eb4a599bd1f44204ff4f84effe7e968677bea212 100644 (file)
@@ -328,7 +328,7 @@ private
   def signed_get(uri, options)
     uri = URI.parse(uri)
     uri.scheme ||= "http"
-    uri.host ||= host
+    uri.host ||= "www.example.com"
 
     helper = OAuth::Client::Helper.new(nil, options)
 
@@ -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