diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index 45af4e33..371bd834 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 47230cf5..6d4073c7 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"