diff options
Diffstat (limited to 'test/functional/settings_controller_test.rb')
-rw-r--r-- | test/functional/settings_controller_test.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/functional/settings_controller_test.rb b/test/functional/settings_controller_test.rb index 4d67bf0f7..ff45150ad 100644 --- a/test/functional/settings_controller_test.rb +++ b/test/functional/settings_controller_test.rb @@ -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 |