Sha256: fc59e22d0220ba6781c79675447d77e41db3d9cc8bdc2b3b983731e900b195a8
Contents?: true
Size: 1002 Bytes
Versions: 5
Compression:
Stored size: 1002 Bytes
Contents
ENV["RAILS_ENV"] ||= 'test' require 'engine_cart' require 'coveralls' Coveralls.wear!('rails') EngineCart.load_application! require 'capybara/poltergeist' Capybara.javascript_driver = :poltergeist Capybara.register_driver :poltergeist do |app| options = {} options[:js_errors] = false options[:timeout] = 120 if RUBY_PLATFORM == "java" Capybara::Poltergeist::Driver.new(app, options) end if ENV["COVERAGE"] or ENV["CI"] require 'simplecov' SimpleCov.formatter = Coveralls::SimpleCov::Formatter SimpleCov.start do add_filter "/spec/" end end require 'commonwealth-vlr-engine' require 'rspec/rails' require 'capybara/rspec' RSpec.configure do |config| # If you're not using ActiveRecord, or you'd prefer not to run each of your # examples within a transaction, remove the following line or assign false # instead of true. config.use_transactional_fixtures = true config.include Devise::TestHelpers, type: :controller config.infer_spec_type_from_file_location! end
Version data entries
5 entries across 5 versions & 1 rubygems