summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2014-08-13 04:56:44 +0000
committerJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2014-08-13 04:56:44 +0000
commit1617ee7bd8b0df0aaf13fcd8a66c07864182381d (patch)
tree20029ca82de4cafa9cb7ff87c751bcffb169a740 /test
parentefc05bc73cf53e2c9d57147f7226f9b17a6350ce (diff)
downloadredmine-1617ee7bd8b0df0aaf13fcd8a66c07864182381d.tar.gz
redmine-1617ee7bd8b0df0aaf13fcd8a66c07864182381d.zip
Add a warning if two plugins have the same settings partial name (#14008).
git-svn-id: http://svn.redmine.org/redmine/trunk@13336 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/lib/redmine/plugin_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/plugin_test.rb b/test/unit/lib/redmine/plugin_test.rb
index 1853b678e..dfce04060 100644
--- a/test/unit/lib/redmine/plugin_test.rb
+++ b/test/unit/lib/redmine/plugin_test.rb
@@ -173,4 +173,10 @@ class Redmine::PluginTest < ActiveSupport::TestCase
end
end
end
+
+ def test_settings_warns_about_possible_partial_collision
+ @klass.register(:foo) { settings :partial => 'foo/settings' }
+ Rails.logger.expects(:warn)
+ @klass.register(:bar) { settings :partial => 'foo/settings' }
+ end
end