openstreetmap-website/vendor/plugins/open_id_authentication/test/status_test.rb
Kai Krueger 58bb08aba8 Add the open_id_authentication plugin
The plugin is taken from http://github.com/rails/open_id_authentication
commit 079b91f70602814c98d4345e198f743bb56b76b5 

This plugin provides some convenience wrapper functions around
the ruby gem ruby-openid
2010-01-10 17:34:00 +00:00

14 lines
No EOL
369 B
Ruby

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