mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-11 18:26:50 +00:00
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.
10 lines
300 B
Ruby
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
|