##// END OF EJS Templates
Fixed tests with the valid login url....
Jean-Philippe Lang -
r8061:83deaad8e4cd
parent child
Show More
@@ -151,7 +151,7 class AccountTest < ActionController::IntegrationTest
151 Setting.self_registration = '0'
151 Setting.self_registration = '0'
152 AuthSource.expects(:authenticate).returns({:login => 'foo', :firstname => 'Foo', :lastname => 'Smith', :mail => 'foo@bar.com', :auth_source_id => 66})
152 AuthSource.expects(:authenticate).returns({:login => 'foo', :firstname => 'Foo', :lastname => 'Smith', :mail => 'foo@bar.com', :auth_source_id => 66})
153
153
154 post 'account/login', :username => 'foo', :password => 'bar'
154 post '/login', :username => 'foo', :password => 'bar'
155 assert_redirected_to '/my/page'
155 assert_redirected_to '/my/page'
156
156
157 user = User.find_by_login('foo')
157 user = User.find_by_login('foo')
@@ -165,7 +165,7 class AccountTest < ActionController::IntegrationTest
165 Setting.self_registration = '0'
165 Setting.self_registration = '0'
166 AuthSource.expects(:authenticate).returns({:login => 'foo', :lastname => 'Smith', :auth_source_id => 66})
166 AuthSource.expects(:authenticate).returns({:login => 'foo', :lastname => 'Smith', :auth_source_id => 66})
167
167
168 post 'account/login', :username => 'foo', :password => 'bar'
168 post '/login', :username => 'foo', :password => 'bar'
169 assert_response :success
169 assert_response :success
170 assert_template 'account/register'
170 assert_template 'account/register'
171 assert_tag :input, :attributes => { :name => 'user[firstname]', :value => '' }
171 assert_tag :input, :attributes => { :name => 'user[firstname]', :value => '' }
General Comments 0
You need to be logged in to leave comments. Login now