]> source.dussan.org Git - redmine.git/commitdiff
Fix rubocop warning (#38975).
authorMarius Balteanu <marius.balteanu@zitec.com>
Sun, 3 Mar 2024 22:27:07 +0000 (22:27 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Sun, 3 Mar 2024 22:27:07 +0000 (22:27 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22759 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/plugin_test.rb

index 66865481b2e9ffc8efa37143062d2434f8d1c171..66d2fb8300785ae3c7c1fe678a8bbd26ed0003b5 100644 (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