X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cb87f02642d0097ebc067ca1f9371dde274a41e3..15e86708f1948d5b07a08bc2a30bf315bab9c07e:/test/models/request_token_test.rb diff --git a/test/models/request_token_test.rb b/test/models/request_token_test.rb index 7bfed5a56..65d17d442 100644 --- a/test/models/request_token_test.rb +++ b/test/models/request_token_test.rb @@ -2,9 +2,9 @@ require "test_helper" class RequestTokenTest < ActiveSupport::TestCase 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_predicate RequestToken.new(:callback_url => "http://test.host/"), :oob? end end