Sha256: 9bc94bbdc382846458f301635d0faf5739ff5bcaec51f113efe5168ddedac5ce
Contents?: true
Size: 1.78 KB
Versions: 4
Compression:
Stored size: 1.78 KB
Contents
# Run Coverage report require 'codeclimate-test-reporter' CodeClimate::TestReporter.start # Configure Rails Environment ENV['RAILS_ENV'] = 'test' require File.expand_path('../dummy/config/environment.rb', __FILE__) require 'rspec/rails' require 'database_cleaner' require 'ffaker' require 'capybara/rspec' require 'capybara-screenshot/rspec' if ENV['WEBDRIVER'] == 'accessible' require 'capybara/accessible' Capybara.javascript_driver = :accessible else require 'capybara/poltergeist' Capybara.javascript_driver = :poltergeist end # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f } # Requires factories and other useful helpers defined in spree_core. require 'spree/testing_support/authorization_helpers' require 'spree/testing_support/capybara_ext' require 'spree/testing_support/controller_requests' require 'spree/testing_support/factories' require 'spree/testing_support/url_helpers' require 'spree/api/testing_support/helpers' # Requires factories defined in lib/solidus_br_common/factories.rb require 'solidus_br_common/factories' RSpec.configure do |config| config.include FactoryGirl::Syntax::Methods # Infer an example group's spec type from the file location. config.infer_spec_type_from_file_location! # == URL Helpers # # Allows access to Spree's routes in specs: # # visit spree.admin_path # current_path.should eql(spree.products_path) config.include Spree::TestingSupport::UrlHelpers config.include Spree::Api::TestingSupport::Helpers config.mock_with :rspec config.color = true config.fixture_path = "#{::Rails.root}/spec/fixtures" config.fail_fast = ENV['FAIL_FAST'] || false config.order = 'random' end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
solidus_br_common-1.1.3 | spec/spec_helper.rb |
solidus_br_common-1.1.2 | spec/spec_helper.rb |
solidus_br_common-1.1.1 | spec/spec_helper.rb |
solidus_br_common-1.1.0 | spec/spec_helper.rb |