mirror of
https://github.com/redmine/redmine.git
synced 2025-11-07 05:45:49 +01:00
Contributed by Dmitry Makurin. git-svn-id: https://svn.redmine.org/redmine/trunk@21725 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -196,6 +196,13 @@ class Redmine::PluginTest < ActiveSupport::TestCase
|
||||
end
|
||||
end
|
||||
|
||||
def test_default_settings
|
||||
@klass.register(:foo_plugin) {settings :default => {'key1' => 'abc', :key2 => 123}}
|
||||
h = Setting.plugin_foo_plugin
|
||||
assert_equal 'abc', h['key1']
|
||||
assert_equal 123, h[:key2]
|
||||
end
|
||||
|
||||
def test_settings_warns_about_possible_partial_collision
|
||||
@klass.register(:foo_plugin) {settings :partial => 'foo/settings'}
|
||||
Rails.logger.expects(:warn)
|
||||
|
||||
Reference in New Issue
Block a user