]> git.openstreetmap.org Git - rails.git/blob - test/models/request_token_test.rb
User factory for uniqueness tests
[rails.git] / test / models / request_token_test.rb
1 require "test_helper"
2
3 class RequestTokenTest < ActiveSupport::TestCase
4   api_fixtures
5
6   def test_oob
7     assert_equal true, RequestToken.new.oob?
8     assert_equal true, RequestToken.new(:callback_url => "oob").oob?
9     assert_equal true, RequestToken.new(:callback_url => "OOB").oob?
10     assert_equal false, RequestToken.new(:callback_url => "http://test.host/").oob?
11   end
12 end