Class: StatusTest

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

Constant Summary

Constants included from OpenIdAuthentication

OPEN_ID_AUTHENTICATION_DIR

Instance Method Summary

Methods included from OpenIdAuthentication

normalize_identifier, normalize_url, store, store=

Instance Method Details

- (Object) test_state_conditional



6
7
8
9
10
11
12
13
# File 'vendor/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