Sha256: 3bc65f19007cfdf8585174ddff177f8b183011bc6857896fcf309b6acf03a9fc
Contents?: true
Size: 908 Bytes
Versions: 7
Compression:
Stored size: 908 Bytes
Contents
# frozen_string_literal: true # A basic feature_helper to be included as the starting point for extensions # # Can be required from an extension's spec/feature_helper.rb # # require 'solidus_dev_support/rspec/feature_helper' # require 'solidus_dev_support/rspec/rails_helper' require 'solidus_dev_support/rspec/capybara' dev_support_assets_preload = ->(*) { if Rails.application.respond_to?(:precompiled_assets) Rails.application.precompiled_assets else # For older sprockets 2.x Rails.application.config.assets.precompile.each do |asset| Rails.application.assets.find_asset(asset) end end } RSpec.configure do |config| config.when_first_matching_example_defined(type: :feature) do config.before :suite, &dev_support_assets_preload end config.when_first_matching_example_defined(type: :system) do config.before :suite, &dev_support_assets_preload end end
Version data entries
7 entries across 7 versions & 1 rubygems