Move config to base helper

This config is relevant for all specs, including system specs.
This commit is contained in:
David Cook
2023-04-05 15:35:14 +10:00
parent 353acfd6ae
commit f0110d20a2
2 changed files with 3 additions and 3 deletions

View File

@@ -142,6 +142,9 @@ RSpec.configure do |config|
config.infer_spec_type_from_file_location!
# You can use `rspec -n` to run only failed specs.
config.example_status_persistence_file_path = "tmp/rspec-status.txt"
# Helpers
config.include FactoryBot::Syntax::Methods
config.include JsonSpec::Helpers

View File

@@ -12,7 +12,4 @@ RSpec.configure do |config|
# Fix encoding issue in Rails 5.0; allows passing empty arrays or hashes as params.
config.before(:each, type: :controller) { @request.env["CONTENT_TYPE"] = 'application/json' }
# You can use `rspec -n` to run only failed specs.
config.example_status_persistence_file_path = "tmp/rspec-status.txt"
end