Adding OpenID mock and test. #699

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2444 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis
2009-02-11 19:07:18 +00:00
parent 0310f43126
commit 48e26aa75b
3 changed files with 60 additions and 0 deletions
@@ -64,6 +64,20 @@ class AccountControllerTest < Test::Unit::TestCase
:content => /Invalid user or password/
end
def test_login_with_openid
post :login, :openid_url => 'http://openid.example.com/good_user'
assert_redirected_to 'my/page'
end
def test_login_with_openid_with_new_user_created
end
def test_login_with_openid_with_new_user_with_conflict
end
def test_autologin
Setting.autologin = "7"
Token.delete_all