From 0e1ae572c7777d50d4c2e61600bee6b3e70eb352 2012-09-01 05:08:22 From: Toshi MARUYAMA Date: 2012-09-01 05:08:22 Subject: [PATCH] Merged r10252 from trunk to 1.4-stable (#11752) scm: git: use with_settings at test_diff_truncated of functional test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.4-stable@10259 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb index 97353b1..08eb025 100644 --- a/test/functional/repositories_git_controller_test.rb +++ b/test/functional/repositories_git_controller_test.rb @@ -326,13 +326,13 @@ class RepositoriesGitControllerTest < ActionController::TestCase :rev => '2f9c0091c754a91af7a9c478e36556b4bde8dcf7' assert_response :success assert @response.body.include?("... This diff was truncated") - - Setting.default_language = 'fr' - get :diff, :id => PRJ_ID, :type => 'inline', - :rev => '2f9c0091c754a91af7a9c478e36556b4bde8dcf7' - assert_response :success - assert ! @response.body.include?("... This diff was truncated") - assert @response.body.include?("... Ce diff") + with_settings :default_language => 'fr' do + get :diff, :id => PRJ_ID, :type => 'inline', + :rev => '2f9c0091c754a91af7a9c478e36556b4bde8dcf7' + assert_response :success + assert ! @response.body.include?("... This diff was truncated") + assert @response.body.include?("... Ce diff") + end end end end