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
This commit is contained in:
parent
9599875f48
commit
f7618160ad
@ -55,8 +55,7 @@ class IssuesControllerTest < ActionController::TestCase
|
||||
end
|
||||
|
||||
def test_index
|
||||
Setting.default_language = 'en'
|
||||
|
||||
with_settings :default_language => "en" do
|
||||
get :index
|
||||
assert_response :success
|
||||
assert_template 'index'
|
||||
@ -70,6 +69,7 @@ class IssuesControllerTest < ActionController::TestCase
|
||||
# project column
|
||||
assert_tag :tag => 'th', :content => /Project/
|
||||
end
|
||||
end
|
||||
|
||||
def test_index_should_not_list_issues_when_module_disabled
|
||||
EnabledModule.delete_all("name = 'issue_tracking' AND project_id = 1")
|
||||
|
Loading…
x
Reference in New Issue
Block a user