@@ -2318,8 +2318,7 class IssuesControllerTest < ActionController::TestCase | |||||
2318 | :attachments => {'1' => {'file' => uploaded_test_file('testfile.txt', 'text/plain')}} |
|
2318 | :attachments => {'1' => {'file' => uploaded_test_file('testfile.txt', 'text/plain')}} | |
2319 | assert_redirected_to :action => 'show', :id => '1' |
|
2319 | assert_redirected_to :action => 'show', :id => '1' | |
2320 | assert_equal '1 file(s) could not be saved.', flash[:warning] |
|
2320 | assert_equal '1 file(s) could not be saved.', flash[:warning] | |
2321 |
|
2321 | end | ||
2322 | end if Object.const_defined?(:Mocha) |
|
|||
2323 |
|
2322 | |||
2324 | def test_put_update_with_no_change |
|
2323 | def test_put_update_with_no_change | |
2325 | issue = Issue.find(1) |
|
2324 | issue = Issue.find(1) |
@@ -144,8 +144,6 class AccountTest < ActionController::IntegrationTest | |||||
144 | log_user('newuser', 'newpass') |
|
144 | log_user('newuser', 'newpass') | |
145 | end |
|
145 | end | |
146 |
|
146 | |||
147 | if Object.const_defined?(:Mocha) |
|
|||
148 |
|
||||
149 | def test_onthefly_registration |
|
147 | def test_onthefly_registration | |
150 | # disable registration |
|
148 | # disable registration | |
151 | Setting.self_registration = '0' |
|
149 | Setting.self_registration = '0' | |
@@ -199,8 +197,4 class AccountTest < ActionController::IntegrationTest | |||||
199 | assert_not_equal sid, session[:session_id], "logout should reset session" |
|
197 | assert_not_equal sid, session[:session_id], "logout should reset session" | |
200 | assert_nil session[:user_id] |
|
198 | assert_nil session[:user_id] | |
201 | end |
|
199 | end | |
202 |
|
||||
203 | else |
|
|||
204 | puts 'Mocha is missing. Skipping tests.' |
|
|||
205 | end |
|
|||
206 | end |
|
200 | end |
General Comments 0
You need to be logged in to leave comments.
Login now