summaryrefslogtreecommitdiffstats
path: root/test/functional/repositories_git_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-27 23:16:56 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-27 23:16:56 +0000
commit1efd303b4aa09710fcb55dffab66d600ac8fc21f (patch)
tree25b872cd67b4ccd91b6c70f2b8d1e06c9c1a0874 /test/functional/repositories_git_controller_test.rb
parentb6be866151b1bd69f8f4057424a0989e5e38a4e5 (diff)
downloadredmine-1efd303b4aa09710fcb55dffab66d600ac8fc21f.tar.gz
redmine-1efd303b4aa09710fcb55dffab66d600ac8fc21f.zip
scm: git: use with_settings instead of assigned setting at functional test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10498 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_git_controller_test.rb')
-rw-r--r--test/functional/repositories_git_controller_test.rb12
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 d8efeee86..873b3e284 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
@@ -320,10 +318,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'