Class: StatusTest

Inherits:
Test::Unit::TestCase
  • Object
show all
Includes:
OpenIdAuthentication
Defined in:
lib/plugins/open_id_authentication/test/status_test.rb

Instance Method Summary collapse

Methods included from OpenIdAuthentication

new, normalize_identifier, store, store=

Instance Method Details

#test_state_conditionalObject


6
7
8
9
10
11
12
13
# File 'lib/plugins/open_id_authentication/test/status_test.rb', line 6

def test_state_conditional
  assert Result[:missing].missing?
  assert Result[:missing].unsuccessful?
  assert !Result[:missing].successful?

  assert Result[:successful].successful?
  assert !Result[:successful].unsuccessful?
end