]> source.dussan.org Git - redmine.git/commitdiff
Fixed tests with the valid login url.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 10 Dec 2011 16:25:22 +0000 (16:25 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 10 Dec 2011 16:25:22 +0000 (16:25 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8181 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/account_test.rb

index 864bb39a137ffdab70db078b30c4045dda6cdbf6..53b40aad1bf2b588ad3d9893869f360814c2686a 100644 (file)
@@ -151,7 +151,7 @@ class AccountTest < ActionController::IntegrationTest
     Setting.self_registration = '0'
     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'
+    post '/login', :username => 'foo', :password => 'bar'
     assert_redirected_to '/my/page'
 
     user = User.find_by_login('foo')
@@ -165,7 +165,7 @@ class AccountTest < ActionController::IntegrationTest
     Setting.self_registration = '0'
     AuthSource.expects(:authenticate).returns({:login => 'foo', :lastname => 'Smith', :auth_source_id => 66})
 
-    post 'account/login', :username => 'foo', :password => 'bar'
+    post '/login', :username => 'foo', :password => 'bar'
     assert_response :success
     assert_template 'account/register'
     assert_tag :input, :attributes => { :name => 'user[firstname]', :value => '' }