Skip to content

Commit

Permalink
fix: make the specs pass in Rails 6 too
Browse files Browse the repository at this point in the history
  • Loading branch information
did committed Nov 28, 2023
1 parent b20f057 commit 9bee388
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Gemfile.legacy.lock
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ GEM
parser (3.2.2.4)
ast (~> 2.4.1)
racc
pg (1.4.6)
pg (1.5.4)
racc (1.7.3)
rack (2.2.8)
rack-proxy (0.7.7)
Expand Down Expand Up @@ -289,7 +289,7 @@ DEPENDENCIES
maglevcms!
mini_magick (~> 4.11)
nokogiri (>= 1.13.10)
pg (~> 1.4.3)
pg (~> 1.5.4)
rails (~> 6.1)
rspec-rails
rubocop
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ GEM
parser (3.2.2.4)
ast (~> 2.4.1)
racc
pg (1.4.6)
pg (1.5.4)
psych (5.1.1.1)
stringio
racc (1.7.3)
Expand Down Expand Up @@ -328,7 +328,7 @@ DEPENDENCIES
image_processing (~> 1.12.2)
maglevcms!
nokogiri (>= 1.13.10)
pg (~> 1.4.3)
pg (~> 1.5.4)
rails (~> 7.1)
rspec-rails
rubocop
Expand Down
2 changes: 1 addition & 1 deletion maglevcms.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ Gem::Specification.new do |spec|
spec.add_dependency 'vite_rails', '< 4', '>= 3'
spec.add_dependency 'vite_ruby', '>= 3.5'

spec.add_development_dependency 'pg', '~> 1.4.3'
spec.add_development_dependency 'pg', '~> 1.5.4'
end
# rubocop:enable Metrics/BlockLength
6 changes: 5 additions & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@
end
RSpec.configure do |config|
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
config.fixture_paths = [File.join(File.dirname(__FILE__), 'fixtures')]
if Rails::VERSION::MAJOR > 6
config.fixture_paths = [File.join(File.dirname(__FILE__), 'fixtures')]
else
config.fixture_path = File.join(File.dirname(__FILE__), 'fixtures')
end

config.include ActionDispatch::TestProcess::FixtureFile
config.include FactoryBot::Syntax::Methods
Expand Down

0 comments on commit 9bee388

Please sign in to comment.