Slight tests fixes.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2055 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2008-11-25 17:37:41 +00:00
parent 9e1192a54d
commit db37e578f2
2 changed files with 3 additions and 0 deletions

View 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

View 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"