]> source.dussan.org Git - redmine.git/commitdiff
Removed mocha availability checks in tests.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 5 Feb 2012 12:20:41 +0000 (12:20 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 5 Feb 2012 12:20:41 +0000 (12:20 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8783 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/issues_controller_test.rb
test/integration/account_test.rb

index f423cc5d153a815de0f6ecc1e16dd9ea55f139ac..6f37bd7208eaa65a182dca8de61b07ae5eb8fb1f 100644 (file)
@@ -2318,8 +2318,7 @@ class IssuesControllerTest < ActionController::TestCase
          :attachments => {'1' => {'file' => uploaded_test_file('testfile.txt', 'text/plain')}}
     assert_redirected_to :action => 'show', :id => '1'
     assert_equal '1 file(s) could not be saved.', flash[:warning]
-
-  end if Object.const_defined?(:Mocha)
+  end
 
   def test_put_update_with_no_change
     issue = Issue.find(1)
index 8cf105f2eea2a7dccde01b7d785683de74f9d549..11afd2b079f5401ad9e64bffa960c93a26d2cd20 100644 (file)
@@ -144,8 +144,6 @@ class AccountTest < ActionController::IntegrationTest
     log_user('newuser', 'newpass')
   end
 
-  if Object.const_defined?(:Mocha)
-
   def test_onthefly_registration
     # disable registration
     Setting.self_registration = '0'
@@ -199,8 +197,4 @@ class AccountTest < ActionController::IntegrationTest
     assert_not_equal sid, session[:session_id], "logout should reset session"
     assert_nil session[:user_id]
   end
-
-  else
-    puts 'Mocha is missing. Skipping tests.'
-  end
 end