diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-09-23 14:22:29 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-09-23 14:22:29 +0000 |
commit | daa7d2ba181627baf42f1e1efea04e4750e05331 (patch) | |
tree | d08d038c3193bef0778d8b0ccb8e64a7531c7f0e /test/unit/lib | |
parent | bbb059d0244a698cd0ee5389252900dcbfbd40a7 (diff) | |
download | redmine-daa7d2ba181627baf42f1e1efea04e4750e05331.tar.gz redmine-daa7d2ba181627baf42f1e1efea04e4750e05331.zip |
Support migration context for plugins (#28934).
git-svn-id: http://svn.redmine.org/redmine/trunk@17514 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib')
-rw-r--r-- | test/unit/lib/redmine/plugin_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/plugin_test.rb b/test/unit/lib/redmine/plugin_test.rb index 51ae269be..42122c945 100644 --- a/test/unit/lib/redmine/plugin_test.rb +++ b/test/unit/lib/redmine/plugin_test.rb @@ -183,4 +183,13 @@ class Redmine::PluginTest < ActiveSupport::TestCase Rails.logger.expects(:warn) @klass.register(:bar) { settings :partial => 'foo/settings' } end + + def test_migrate_redmine_plugin + @klass.register :foo do + name 'Foo plugin' + version '0.0.1' + end + + assert Redmine::Plugin.migrate('foo') + end end |