git-svn-id: https://svn.redmine.org/redmine/trunk@22759 e93f8b46-1217-0410-a6f0-8f06a7374b81pull/149/head
@@ -62,7 +62,7 @@ class Redmine::PluginTest < ActiveSupport::TestCase | |||
assert_equal File.join(@klass.directory, 'foo_plugin', 'assets'), plugin.assets_directory | |||
end | |||
::FooModel = Class.new(ActiveRecord::Base) | |||
::FooModel = Class.new(ApplicationRecord) | |||
def test_register_attachment_object_type | |||
Redmine::Acts::Attachable::ObjectTypeConstraint.expects(:register_object_type).with("foo_models") | |||
@klass.register :foo_plugin do |