##// END OF EJS Templates
remove trailing white-spaces from test/unit/setting_test.rb...
Toshi MARUYAMA -
r12022:979d3400ab2e
parent child
Show More
@@ -46,16 +46,16 class SettingTest < ActiveSupport::TestCase
46 46 assert_equal ['issue_added', 'issue_updated', 'news_added'], Setting.notified_events
47 47 assert_equal ['issue_added', 'issue_updated', 'news_added'], Setting.find_by_name('notified_events').value
48 48 end
49
49
50 50 def test_setting_should_be_reloaded_after_clear_cache
51 51 Setting.app_title = "My title"
52 52 assert_equal "My title", Setting.app_title
53
53
54 54 s = Setting.find_by_name("app_title")
55 55 s.value = 'New title'
56 56 s.save!
57 57 assert_equal "My title", Setting.app_title
58
58
59 59 Setting.clear_cache
60 60 assert_equal "New title", Setting.app_title
61 61 end
General Comments 0
You need to be logged in to leave comments. Login now