X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ca5de5b4e01297b07ce3a9db45e908f15f7cda11..90fd22e2a35cea1e4bc55185f93267c49fb37b6e:/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 24ad419fa..65d17d442 100644 --- a/test/models/request_token_test.rb +++ b/test/models/request_token_test.rb @@ -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_predicate RequestToken.new(:callback_url => "http://test.host/"), :oob? end end