diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-28 00:19:09 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-28 00:19:09 +0000 |
commit | 59d4d210a76ba11a89fddb978c9a1dfbb92ac37c (patch) | |
tree | 318b177d530875361e357ac7665e43171899c5b3 | |
parent | 633b86236c60c6192f4eb8b264ca5fee5952471e (diff) | |
download | redmine-59d4d210a76ba11a89fddb978c9a1dfbb92ac37c.tar.gz redmine-59d4d210a76ba11a89fddb978c9a1dfbb92ac37c.zip |
Merged r10498 from trunk
scm: git: use with_settings instead of assigned setting at functional test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.4-stable@10500 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/functional/repositories_git_controller_test.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb index 08eb02565..df8d5cf72 100644 --- a/test/functional/repositories_git_controller_test.rb +++ b/test/functional/repositories_git_controller_test.rb @@ -53,8 +53,6 @@ class RepositoriesGitControllerTest < ActionController::TestCase if @char_1.respond_to?(:force_encoding) @char_1.force_encoding('UTF-8') end - - Setting.default_language = 'en' end def test_create_and_update @@ -322,10 +320,12 @@ class RepositoriesGitControllerTest < ActionController::TestCase with_settings :diff_max_lines_displayed => 5 do # Truncated diff of changeset 2f9c0091 with_cache do - get :diff, :id => PRJ_ID, :type => 'inline', - :rev => '2f9c0091c754a91af7a9c478e36556b4bde8dcf7' - assert_response :success - assert @response.body.include?("... This diff was truncated") + with_settings :default_language => 'en' do + get :diff, :id => PRJ_ID, :type => 'inline', + :rev => '2f9c0091c754a91af7a9c478e36556b4bde8dcf7' + assert_response :success + assert @response.body.include?("... This diff was truncated") + end with_settings :default_language => 'fr' do get :diff, :id => PRJ_ID, :type => 'inline', :rev => '2f9c0091c754a91af7a9c478e36556b4bde8dcf7' |