]> git.openstreetmap.org Git - rails.git/blob - test/models/request_token_test.rb
Merge pull request #4593 from AntonKhorev/simplify-link_to-on-issue-pages
[rails.git] / test / models / request_token_test.rb
1 require "test_helper"
2
3 class RequestTokenTest < ActiveSupport::TestCase
4   def test_oob
5     assert_predicate RequestToken.new, :oob?
6     assert_predicate RequestToken.new(:callback_url => "oob"), :oob?
7     assert_predicate RequestToken.new(:callback_url => "OOB"), :oob?
8     assert_not_predicate RequestToken.new(:callback_url => "http://test.host/"), :oob?
9   end
10 end