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