Sha256: b3a4f4af2d7084dc9dc854786466a1250699fe3df6e8a3acdffd5d9b49e6e751
Contents?: true
Size: 1.64 KB
Versions: 1
Compression:
Stored size: 1.64 KB
Contents
require 'simplecov' SimpleCov.start do add_filter 'spec' add_group 'Controllers', 'app/controllers' add_group 'Helpers', 'app/helpers' add_group 'Overrides', 'app/overrides' add_group 'Models', 'app/models' end ENV['RAILS_ENV'] ||= 'test' require File.expand_path('../dummy/config/environment.rb', __FILE__) require 'solidus_frontend' require 'solidus_backend' require 'rspec/rails' Dir[Rails.root.join('spec/support/**/*.rb')].sort.each { |file| require file } require 'spree/testing_support/url_helpers' require 'spree/testing_support/controller_requests' require 'spree/testing_support/authorization_helpers' require 'spree/testing_support/preferences' require 'spree/testing_support/factories' require 'spree/api/testing_support/helpers' require 'spree/api/testing_support/setup' # Requires factories defined in lib/solidus_newsletter/factories.rb require 'solidus_newsletter/factories' RSpec.configure do |config| config.infer_spec_type_from_file_location! config.infer_base_class_for_anonymous_controllers = false config.infer_spec_type_from_file_location! config.use_transactional_fixtures = true config.include FactoryBot::Syntax::Methods config.include Spree::Api::TestingSupport::Helpers, type: :controller config.extend Spree::Api::TestingSupport::Setup, type: :controller config.include Spree::TestingSupport::ControllerRequests, type: :controller config.include Spree::TestingSupport::UrlHelpers config.extend Spree::TestingSupport::AuthorizationHelpers::Request, type: :request config.include Spree::TestingSupport::Preferences, type: :controller config.include Spree::TestingSupport::Preferences, type: :model end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_newsletter-1.0 | spec/spec_helper.rb |