Skip to content

Commit 6ddb0ec

Browse files
authored
Merge pull request #3337 from projectblacklight/release-8.x-backports
Release 8.x backports
2 parents ce64fea + d6f9fdf commit 6ddb0ec

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

blacklight.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Gem::Specification.new do |s|
3535
s.add_dependency "zeitwerk"
3636

3737
s.add_development_dependency "rsolr", ">= 1.0.6", "< 3" # Library for interacting with rSolr.
38-
s.add_development_dependency "rspec-rails", "~> 6.1"
38+
s.add_development_dependency "rspec-rails", ">= 6.1", "< 8"
3939
s.add_development_dependency "rspec-collection_matchers", ">= 1.0"
4040
s.add_development_dependency 'axe-core-rspec'
4141
s.add_development_dependency "capybara", '~> 3'

spec/spec_helper.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@
4949
# When we're testing the API, only run the api tests
5050
config.filter_run api: true if ENV['BLACKLIGHT_API_TEST'].present?
5151

52-
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
53-
config.fixture_path = Rails.root.join("spec/fixtures")
52+
if Rails.version.to_f >= 7.1
53+
config.fixture_paths = [Rails.root.join("spec/fixtures")]
54+
else
55+
config.fixture_path = Rails.root.join("spec/fixtures")
56+
end
5457

5558
# If you're not using ActiveRecord, or you'd prefer not to run each of your
5659
# examples within a transaction, remove the following line or assign false

0 commit comments

Comments
 (0)