view lib/plugins/open_id_authentication/test/status_test.rb @ 1607:1c904260787b deploy

Minor tweaks & cron pre-run
author Chris Cannam
date Fri, 25 Aug 2017 16:00:16 +0100
parents 433d4f72a19b
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