]> git.openstreetmap.org Git - rails.git/blob - vendor/plugins/open_id_authentication/test/status_test.rb
Merge branch 'master' into openid
[rails.git] / vendor / plugins / open_id_authentication / test / status_test.rb
1 require File.dirname(__FILE__) + '/test_helper'
2
3 class StatusTest < Test::Unit::TestCase
4   include OpenIdAuthentication
5
6   def test_state_conditional
7     assert Result[:missing].missing?
8     assert Result[:missing].unsuccessful?
9     assert !Result[:missing].successful?
10
11     assert Result[:successful].successful?
12     assert !Result[:successful].unsuccessful?
13   end
14 end