mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Clear settings that are changed by these tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@15286 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
56ba4d0209
commit
197ec295e0
@ -26,6 +26,11 @@ class SettingsControllerTest < ActionController::TestCase
|
|||||||
@request.session[:user_id] = 1 # admin
|
@request.session[:user_id] = 1 # admin
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def teardown
|
||||||
|
Setting.delete_all
|
||||||
|
Setting.clear_cache
|
||||||
|
end
|
||||||
|
|
||||||
def test_index
|
def test_index
|
||||||
get :index
|
get :index
|
||||||
assert_response :success
|
assert_response :success
|
||||||
@ -78,7 +83,6 @@ class SettingsControllerTest < ActionController::TestCase
|
|||||||
assert !Setting.bcc_recipients?
|
assert !Setting.bcc_recipients?
|
||||||
assert_equal %w(issue_added issue_updated news_added), Setting.notified_events
|
assert_equal %w(issue_added issue_updated news_added), Setting.notified_events
|
||||||
assert_equal 'Test footer', Setting.emails_footer
|
assert_equal 'Test footer', Setting.emails_footer
|
||||||
Setting.clear_cache
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_edit_commit_update_keywords
|
def test_edit_commit_update_keywords
|
||||||
|
|||||||
@ -22,6 +22,7 @@ require File.expand_path('../../test_helper', __FILE__)
|
|||||||
class SettingTest < ActiveSupport::TestCase
|
class SettingTest < ActiveSupport::TestCase
|
||||||
|
|
||||||
def teardown
|
def teardown
|
||||||
|
Setting.delete_all
|
||||||
Setting.clear_cache
|
Setting.clear_cache
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user