Fix rubocop warning (#38975).

git-svn-id: https://svn.redmine.org/redmine/trunk@22759 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2024-03-03 22:27:07 +00:00
parent 805e51464e
commit e1ffdb2316

View File

@@ -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