diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-12 21:25:50 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-12 21:25:50 +0000 |
commit | ff9da0bab038ea118b839dd2d9e93a4d1a37e274 (patch) | |
tree | 291390f695c5abbbe5c2dad973e312923830694d /test/functional/account_controller_test.rb | |
parent | 5bdd4291624cabee530e1c40be79c19ba6fb09dd (diff) | |
download | redmine-ff9da0bab038ea118b839dd2d9e93a4d1a37e274.tar.gz redmine-ff9da0bab038ea118b839dd2d9e93a4d1a37e274.zip |
Removes the fat ruby-openid gem. Simply use 'gem install ruby-openid' to enable openid support.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2458 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/account_controller_test.rb')
-rw-r--r-- | test/functional/account_controller_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb index a95ae5bd8..c5a78dad2 100644 --- a/test/functional/account_controller_test.rb +++ b/test/functional/account_controller_test.rb @@ -64,6 +64,8 @@ class AccountControllerTest < Test::Unit::TestCase :content => /Invalid user or password/ end + if Object.const_defined?(:OpenID) + def test_login_with_openid_for_existing_user Setting.self_registration = '3' Setting.openid = '1' @@ -134,6 +136,11 @@ class AccountControllerTest < Test::Unit::TestCase assert_equal 'http://openid.example.com/good_user', assigns(:user)[:identity_url] end + else + puts "Skipping openid tests." + end + + def test_autologin Setting.autologin = "7" Token.delete_all |