diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-02-26 09:13:12 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-02-26 09:13:12 +0000 |
commit | d6f9e576e88dae3aeec6a4997d1dcf00c9821878 (patch) | |
tree | 6fb8f14474e8e5ea96f017af2bf5770dcb80c009 /test/integration/account_test.rb | |
parent | f1d16bc0076de863c4a419c555079016280752fa (diff) | |
download | redmine-d6f9e576e88dae3aeec6a4997d1dcf00c9821878.tar.gz redmine-d6f9e576e88dae3aeec6a4997d1dcf00c9821878.zip |
Makes AuthSource.authenticate return a hash instead of an array.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3492 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/account_test.rb')
-rw-r--r-- | test/integration/account_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/account_test.rb b/test/integration/account_test.rb index f82e681b1..8307702e0 100644 --- a/test/integration/account_test.rb +++ b/test/integration/account_test.rb @@ -149,7 +149,7 @@ class AccountTest < ActionController::IntegrationTest def test_onthefly_registration # disable registration Setting.self_registration = '0' - AuthSource.expects(:authenticate).returns([:login => 'foo', :firstname => 'Foo', :lastname => 'Smith', :mail => 'foo@bar.com', :auth_source_id => 66]) + AuthSource.expects(:authenticate).returns({:login => 'foo', :firstname => 'Foo', :lastname => 'Smith', :mail => 'foo@bar.com', :auth_source_id => 66}) post 'account/login', :username => 'foo', :password => 'bar' assert_redirected_to 'my/page' @@ -163,7 +163,7 @@ class AccountTest < ActionController::IntegrationTest def test_onthefly_registration_with_invalid_attributes # disable registration Setting.self_registration = '0' - AuthSource.expects(:authenticate).returns([:login => 'foo', :lastname => 'Smith', :auth_source_id => 66]) + AuthSource.expects(:authenticate).returns({:login => 'foo', :lastname => 'Smith', :auth_source_id => 66}) post 'account/login', :username => 'foo', :password => 'bar' assert_response :success |