15 lines
389 B
Ruby
15 lines
389 B
Ruby
#-- encoding: UTF-8
|
|
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 |