@@ -151,7 +151,7 class AccountTest < ActionController::IntegrationTest | |||
|
151 | 151 | Setting.self_registration = '0' |
|
152 | 152 | AuthSource.expects(:authenticate).returns({:login => 'foo', :firstname => 'Foo', :lastname => 'Smith', :mail => 'foo@bar.com', :auth_source_id => 66}) |
|
153 | 153 | |
|
154 |
post ' |
|
|
154 | post '/login', :username => 'foo', :password => 'bar' | |
|
155 | 155 | assert_redirected_to '/my/page' |
|
156 | 156 | |
|
157 | 157 | user = User.find_by_login('foo') |
@@ -165,7 +165,7 class AccountTest < ActionController::IntegrationTest | |||
|
165 | 165 | Setting.self_registration = '0' |
|
166 | 166 | AuthSource.expects(:authenticate).returns({:login => 'foo', :lastname => 'Smith', :auth_source_id => 66}) |
|
167 | 167 | |
|
168 |
post ' |
|
|
168 | post '/login', :username => 'foo', :password => 'bar' | |
|
169 | 169 | assert_response :success |
|
170 | 170 | assert_template 'account/register' |
|
171 | 171 | assert_tag :input, :attributes => { :name => 'user[firstname]', :value => '' } |
General Comments 0
You need to be logged in to leave comments.
Login now