Skip to content

Commit

Permalink
Make file fixtures work in Rails 6
Browse files Browse the repository at this point in the history
REDMINE-19438
  • Loading branch information
tf committed Sep 18, 2023
1 parent e05162b commit c22ad25
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion entry_types/scrolled/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
# Enable flags like --only-failures and --next-failure
config.example_status_persistence_file_path = '.rspec_status'

config.fixture_path = './spec/fixtures'
if Pageflow::RailsVersion.experimental?
config.file_fixture_path = './spec/fixtures'
else
config.fixture_path = './spec/fixtures'
end

# Disable RSpec exposing methods globally on `Module` and `main`
config.disable_monkey_patching!
Expand Down

0 comments on commit c22ad25

Please sign in to comment.