From 389570c48f48ebe0f06260828eac7dc33ca3d574 Mon Sep 17 00:00:00 2001 From: Anna Headley Date: Wed, 18 Nov 2020 11:35:15 -0500 Subject: [PATCH] Explicitly require rails-controller-testing business Co-Authored-By: Daniel Pierce Co-Authored-By: Chris Colvard --- hydra-core/spec/spec_helper.rb | 4 ++++ hydra-head.gemspec | 1 + 2 files changed, 5 insertions(+) diff --git a/hydra-core/spec/spec_helper.rb b/hydra-core/spec/spec_helper.rb index 4e358a0e2..7ad996a13 100644 --- a/hydra-core/spec/spec_helper.rb +++ b/hydra-core/spec/spec_helper.rb @@ -12,6 +12,7 @@ require 'simplecov' require 'coveralls' +require 'rails-controller-testing' SimpleCov.root(File.expand_path('../..', __dir__)) SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new( @@ -29,6 +30,9 @@ require 'active_fedora/cleaner' RSpec.configure do |config| config.include Devise::Test::ControllerHelpers, type: :controller + config.include ::Rails::Controller::Testing::TemplateAssertions, type: :controller + config.include ::Rails::Controller::Testing::TestProcess, type: :controller + config.include ::Rails::Controller::Testing::Integration, type: :controller config.use_transactional_fixtures = true config.infer_spec_type_from_file_location! diff --git a/hydra-head.gemspec b/hydra-head.gemspec index 0caa2d64d..de4acb752 100644 --- a/hydra-head.gemspec +++ b/hydra-head.gemspec @@ -29,4 +29,5 @@ Gem::Specification.new do |s| s.add_development_dependency 'simplecov' s.add_development_dependency 'solr_wrapper', '~> 2.0' s.add_development_dependency 'rspec_junit_formatter' + s.add_development_dependency 'rails-controller-testing' end