]> source.dussan.org Git - redmine.git/commitdiff
Slight tests fixes.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 25 Nov 2008 17:37:41 +0000 (17:37 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 25 Nov 2008 17:37:41 +0000 (17:37 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2055 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/projects_controller_test.rb
test/unit/repository_test.rb

index 45af4e33efc285310d05ccf4d0c855f7ce052295..371bd834fcaba02a475c7869f3059be672a752ba 100644 (file)
@@ -30,6 +30,7 @@ class ProjectsControllerTest < Test::Unit::TestCase
     @request    = ActionController::TestRequest.new
     @response   = ActionController::TestResponse.new
     @request.session[:user_id] = nil
+    Setting.default_language = 'en'
   end
 
   def test_index
index 47230cf565300aaf878c0571caec1495d4698fb8..6d4073c79c6c69969edcd0233cdd0e036a47a9cb 100644 (file)
@@ -66,6 +66,8 @@ class RepositoryTest < Test::Unit::TestCase
   end
   
   def test_scan_changesets_for_issue_ids
+    Setting.default_language = 'en'
+    
     # choosing a status to apply to fix issues
     Setting.commit_fix_status_id = IssueStatus.find(:first, :conditions => ["is_closed = ?", true]).id
     Setting.commit_fix_done_ratio = "90"