summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-11-25 17:37:41 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-11-25 17:37:41 +0000
commitdb37e578f2697e07e10931c100e848b996e483d5 (patch)
treec21d9ce54d61cbd2503afda7ff43d6baf29a93a1
parent9e1192a54de63492f9400a56d0e6a131f95a00d8 (diff)
downloadredmine-db37e578f2697e07e10931c100e848b996e483d5.tar.gz
redmine-db37e578f2697e07e10931c100e848b996e483d5.zip
Slight tests fixes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2055 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/functional/projects_controller_test.rb1
-rw-r--r--test/unit/repository_test.rb2
2 files changed, 3 insertions, 0 deletions
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"