From: Jean-Philippe Lang Date: Tue, 25 Nov 2008 17:37:41 +0000 (+0000) Subject: Slight tests fixes. X-Git-Tag: 0.8.0-RC1~44 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=db37e578f2697e07e10931c100e848b996e483d5;p=redmine.git Slight tests fixes. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2055 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index 45af4e33e..371bd834f 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -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 diff --git a/test/unit/repository_test.rb b/test/unit/repository_test.rb index 47230cf56..6d4073c79 100644 --- a/test/unit/repository_test.rb +++ b/test/unit/repository_test.rb @@ -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"