Sha256: eae5c22bdb6a85c135388859d02a9c03ac79d65884ac1e1d0ea0f3f054228d05
Contents?: true
Size: 1.02 KB
Versions: 6
Compression:
Stored size: 1.02 KB
Contents
require 'simplecov' SimpleCov.start 'rails' ENV['RAILS_ENV'] ||= 'test' require File.expand_path("../dummy/config/environment.rb", __FILE__) require 'rspec/rails' require 'ffaker' # Requires factories defined in spree_core require 'spree/testing_support/factories' require 'spree/testing_support/controller_requests' require 'spree/testing_support/authorization_helpers' require 'spree/testing_support/preferences' require 'spree/api/testing_support/helpers' require 'spree/api/testing_support/setup' require 'cancan/matchers' Dir[File.join(File.dirname(__FILE__), "support/**/*.rb")].each { |f| require f } RSpec.configure do |config| config.infer_spec_type_from_file_location! config.mock_with :rspec config.filter_run focus: true config.run_all_when_everything_filtered = true config.use_transactional_fixtures = true config.include FactoryGirl::Syntax::Methods config.include Spree::TestingSupport::ControllerRequests, type: :controller config.include Spree::Api::TestingSupport::Helpers, type: :controller end
Version data entries
6 entries across 6 versions & 1 rubygems