summaryrefslogtreecommitdiffstats
path: root/test/unit/setting_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-18 17:50:17 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-18 17:50:17 +0000
commit25012efc9c9b7623937fdb5c944364a6ed9736cb (patch)
treecdd61bfc9437a5956261ad6916b3ce6dfde9036b /test/unit/setting_test.rb
parenteb371db5b96ebd2471cef8156bf6e19e9d97bc06 (diff)
downloadredmine-25012efc9c9b7623937fdb5c944364a6ed9736cb.tar.gz
redmine-25012efc9c9b7623937fdb5c944364a6ed9736cb.zip
Fixed: Oracle error when saving serialized setting (eg. mail notifications)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@742 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/setting_test.rb')
-rw-r--r--test/unit/setting_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/setting_test.rb b/test/unit/setting_test.rb
index 44240ef4e..34d07c193 100644
--- a/test/unit/setting_test.rb
+++ b/test/unit/setting_test.rb
@@ -36,4 +36,10 @@ class SettingTest < Test::Unit::TestCase
# make sure db has been updated (UPDATE)
assert_equal "My other title", Setting.find_by_name('app_title').value
end
+
+ def test_serialized_setting
+ Setting.notified_events = ['issue_added', 'issue_updated', 'news_added']
+ assert_equal ['issue_added', 'issue_updated', 'news_added'], Setting.notified_events
+ assert_equal ['issue_added', 'issue_updated', 'news_added'], Setting.find_by_name('notified_events').value
+ end
end