view vendor/plugins/open_id_authentication/test/status_test.rb @ 871:d6c20f61a130 feature_128

Close obsolete branch feature_128
author Chris Cannam
date Sat, 02 Apr 2011 12:22:46 +0100
parents 513646585e45
children
line wrap: on
line source
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