mirror of
https://github.com/redmine/redmine.git
synced 2025-11-09 14:56:01 +01:00
Fix rubocop warning (#38975).
git-svn-id: https://svn.redmine.org/redmine/trunk@22759 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -62,7 +62,7 @@ class Redmine::PluginTest < ActiveSupport::TestCase
|
|||||||
assert_equal File.join(@klass.directory, 'foo_plugin', 'assets'), plugin.assets_directory
|
assert_equal File.join(@klass.directory, 'foo_plugin', 'assets'), plugin.assets_directory
|
||||||
end
|
end
|
||||||
|
|
||||||
::FooModel = Class.new(ActiveRecord::Base)
|
::FooModel = Class.new(ApplicationRecord)
|
||||||
def test_register_attachment_object_type
|
def test_register_attachment_object_type
|
||||||
Redmine::Acts::Attachable::ObjectTypeConstraint.expects(:register_object_type).with("foo_models")
|
Redmine::Acts::Attachable::ObjectTypeConstraint.expects(:register_object_type).with("foo_models")
|
||||||
@klass.register :foo_plugin do
|
@klass.register :foo_plugin do
|
||||||
|
|||||||
Reference in New Issue
Block a user