Project

General

Profile

Patch #28934 » add_unittest.patch

Tatsuya Saito, 2018-06-27 00:41

View differences:

test/unit/lib/redmine/plugin_test.rb (working copy)
183 183
    Rails.logger.expects(:warn)
184 184
    @klass.register(:bar) { settings :partial => 'foo/settings' }
185 185
  end
186

  
187
  def test_migrate_redmine_plugin
188
    @klass.register :foo do
189
      name 'Foo plugin'
190
      version '0.0.1'
191
    end
192

  
193
    assert Redmine::Plugin.migrate('foo')
194
  end
186 195
end
(2-2/4)