Commit 3feee257 authored by jplang's avatar jplang

Clear settings that are changed by these tests.

git-svn-id: https://svn.redmine.org/redmine/trunk@15286 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 3f2ce55b
......@@ -26,6 +26,11 @@ class SettingsControllerTest < ActionController::TestCase
@request.session[:user_id] = 1 # admin
end
def teardown
Setting.delete_all
Setting.clear_cache
end
def test_index
get :index
assert_response :success
......@@ -78,7 +83,6 @@ class SettingsControllerTest < ActionController::TestCase
assert !Setting.bcc_recipients?
assert_equal %w(issue_added issue_updated news_added), Setting.notified_events
assert_equal 'Test footer', Setting.emails_footer
Setting.clear_cache
end
def test_edit_commit_update_keywords
......
......@@ -22,6 +22,7 @@ require File.expand_path('../../test_helper', __FILE__)
class SettingTest < ActiveSupport::TestCase
def teardown
Setting.delete_all
Setting.clear_cache
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment