Files
openfoodnetwork/spec/spec_helper.rb
Maikel Linke 37feefce37 Avoid precompiling assets unnecessary
We had two calls to precompile assets, one for all specs and then a
second one just for system specs. The one for system specs is better
because it checks for the webpack dev server before compiling assets. So
let's use just that one.
2023-11-23 17:00:44 +11:00

10 lines
300 B
Ruby

# frozen_string_literal: true
require 'base_spec_helper'
require 'database_cleaner'
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' }
end