view .svn/pristine/04/0498f22fd69f96a75cd1f1df26f11c6b9f18a2ee.svn-base @ 1013:b98f60a6d231 live

Avoid crashing out with weird event types that don't give us a proper author record
author Chris Cannam
date Mon, 12 Nov 2012 14:55:11 +0000
parents cbb26bc654de
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