view vendor/plugins/open_id_authentication/test/status_test.rb @ 1111:7d62d2f497c5 bibplugin_bibtex

adds all the necessary hidden fieds; associates authors, users and publications. Known issues associating publications, authors and users.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Fri, 07 Dec 2012 14:39:38 +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