diff --git a/lib/hyrax/engine.rb b/lib/hyrax/engine.rb index d8fcd12f25..71983435b3 100644 --- a/lib/hyrax/engine.rb +++ b/lib/hyrax/engine.rb @@ -34,7 +34,6 @@ class Engine < ::Rails::Engine require 'hyrax/transactions' require 'hyrax/errors' require 'hyrax/valkyrie_simple_path_generator' - require 'hyrax/rubocop/custom_cops' # Force these models to be added to Legato's registry in development mode config.eager_load_paths += %W[ diff --git a/spec/lib/hyrax/rubocop/custom_cops_spec.rb b/spec/lib/hyrax/rubocop/custom_cops_spec.rb index 5c4904dd61..8cfcc7a619 100644 --- a/spec/lib/hyrax/rubocop/custom_cops_spec.rb +++ b/spec/lib/hyrax/rubocop/custom_cops_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +require 'hyrax/rubocop/custom_cops' RSpec.describe Hyrax::RuboCop::CustomCops::ArResource do subject(:cop) { described_class.new }