X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7a1615bc55aee72dd03a5dd43c08b4f13f669f06..b45642d2abca834c59e7db1fda512151393c88cc:/test/models/request_token_test.rb?ds=sidebyside diff --git a/test/models/request_token_test.rb b/test/models/request_token_test.rb index c231371ce..4f17b7256 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 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