X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c51786d10bc6dda488964f468a6a3071dd6912a8..b3759c0d5811579a2a409b9c8c218d605cb62aa4:/test/models/request_token_test.rb diff --git a/test/models/request_token_test.rb b/test/models/request_token_test.rb index c231371ce..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 RequestToken.new.oob? - assert RequestToken.new(:callback_url => "oob").oob? - assert RequestToken.new(:callback_url => "OOB").oob? - assert_not 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