Browse Source

Fix rubocop warning (#38975).

git-svn-id: https://svn.redmine.org/redmine/trunk@22759 e93f8b46-1217-0410-a6f0-8f06a7374b81
pull/149/head
Marius Balteanu 1 month ago
parent
commit
e1ffdb2316
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      test/unit/lib/redmine/plugin_test.rb

+ 1
- 1
test/unit/lib/redmine/plugin_test.rb 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

Loading…
Cancel
Save