Skip to content

Commit

Permalink
Explicitly require rails-controller-testing business
Browse files Browse the repository at this point in the history
Co-Authored-By: Daniel Pierce <[email protected]>
Co-Authored-By: Chris Colvard <[email protected]>
  • Loading branch information
3 people committed Nov 18, 2020
1 parent 466f051 commit 389570c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hydra-core/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

require 'simplecov'
require 'coveralls'
require 'rails-controller-testing'

SimpleCov.root(File.expand_path('../..', __dir__))
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(
Expand All @@ -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!

Expand Down
1 change: 1 addition & 0 deletions hydra-head.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 389570c

Please sign in to comment.