]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/request_token_test.rb
Merge remote-tracking branch 'upstream/pull/4262'
[rails.git] / test / models / request_token_test.rb
index c231371cefeb684a698b10a11640499b3c2257e2..4f17b725605c2274729c8ea7a7fc5230cc867a27 100644 (file)
@@ -2,9 +2,9 @@ require "test_helper"
 
 class RequestTokenTest < ActiveSupport::TestCase
   def test_oob
 
 class RequestTokenTest < ActiveSupport::TestCase
   def test_oob
-    assert RequestToken.new.oob?
-    assert RequestToken.new(:callback_url => "oob").oob?
-    assert RequestToken.new(:callback_url => "OOB").oob?
+    assert_predicate RequestToken.new, :oob?
+    assert_predicate RequestToken.new(:callback_url => "oob"), :oob?
+    assert_predicate RequestToken.new(:callback_url => "OOB"), :oob?
     assert_not RequestToken.new(:callback_url => "http://test.host/").oob?
   end
 end
     assert_not RequestToken.new(:callback_url => "http://test.host/").oob?
   end
 end