2011-10-29 16:19:11 +04:00
|
|
|
#-- encoding: UTF-8
|
2009-02-11 22:06:45 +03:00
|
|
|
require File.dirname(__FILE__) + '/test_helper'
|
|
|
|
|
|
|
|
class StatusTest < Test::Unit::TestCase
|
|
|
|
include OpenIdAuthentication
|
|
|
|
|
|
|
|
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
|
|
|
|
end
|