view vendor/plugins/open_id_authentication/test/status_test.rb @ 783:b153713dc4fd feature_14

Fixes the default status of the my_projects fieldset in the projects index view.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Fri, 18 Nov 2011 16:04:59 +0000
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