diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-02-15 21:42:34 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-02-15 21:42:34 +0000 |
commit | f7618160ad0178b4ce2eb624cd0771acad227887 (patch) | |
tree | 34db837c98bb6b0b7d9ea884de2cebc1d309eb3f | |
parent | 9599875f48943d3861ccdbd8f1bb3c781e08943c (diff) | |
download | redmine-f7618160ad0178b4ce2eb624cd0771acad227887.tar.gz redmine-f7618160ad0178b4ce2eb624cd0771acad227887.zip |
use with_settings instead of direct "Setting" at "test_index" of functional issues controller test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8885 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/functional/issues_controller_test.rb | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 9a5a7cf29..6f1bea304 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -55,20 +55,20 @@ class IssuesControllerTest < ActionController::TestCase end def test_index - Setting.default_language = 'en' - - get :index - assert_response :success - assert_template 'index' - assert_not_nil assigns(:issues) - assert_nil assigns(:project) - assert_tag :tag => 'a', :content => /Can't print recipes/ - assert_tag :tag => 'a', :content => /Subproject issue/ - # private projects hidden - assert_no_tag :tag => 'a', :content => /Issue of a private subproject/ - assert_no_tag :tag => 'a', :content => /Issue on project 2/ - # project column - assert_tag :tag => 'th', :content => /Project/ + with_settings :default_language => "en" do + get :index + assert_response :success + assert_template 'index' + assert_not_nil assigns(:issues) + assert_nil assigns(:project) + assert_tag :tag => 'a', :content => /Can't print recipes/ + assert_tag :tag => 'a', :content => /Subproject issue/ + # private projects hidden + assert_no_tag :tag => 'a', :content => /Issue of a private subproject/ + assert_no_tag :tag => 'a', :content => /Issue on project 2/ + # project column + assert_tag :tag => 'th', :content => /Project/ + end end def test_index_should_not_list_issues_when_module_disabled |