view vendor/plugins/open_id_authentication/test/status_test.rb @ 692:dd366a17ab34 feature_36

Bug #294 - Does not show publications associated with projects without visibility.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Fri, 16 Sep 2011 17:28:08 +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