]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/request_token_test.rb
Rewrite bbox only in place history atom links
[rails.git] / test / models / request_token_test.rb
index 24ad419fa814353dbe0ed3f59d491e75fcc2075a..4f17b725605c2274729c8ea7a7fc5230cc867a27 100644 (file)
@@ -1,12 +1,10 @@
 require "test_helper"
 
 class RequestTokenTest < ActiveSupport::TestCase
-  api_fixtures
-
   def test_oob
-    assert_equal true, RequestToken.new.oob?
-    assert_equal true, RequestToken.new(:callback_url => "oob").oob?
-    assert_equal true, RequestToken.new(:callback_url => "OOB").oob?
-    assert_equal false, RequestToken.new(:callback_url => "http://test.host/").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