Sha256: debd4793f43712df87cafb876c3f81c0ca990aed2da270f12fd458e1a1f94ce8
Contents?: true
Size: 1.63 KB
Versions: 23
Compression:
Stored size: 1.63 KB
Contents
# frozen_string_literal: true # Bundler setup require 'bundler' Bundler.require :default, :test, :rails # Coverage require 'coveralls' Coveralls.wear! do add_filter 'spec' end # ENV['RAILS_ENV'] ||= 'test' ENV['RAILS_GROUPS'] = ['rails', ENV['RAILS_GROUPS']].reject(&:nil?).join(',') require File.expand_path('../dummy/config/environment', __FILE__) require 'rspec/rails' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. Dir[File.expand_path('../support/**/*.rb', __FILE__)].each {|f| require f } # Checks for pending migrations before tests are run. # If you are not using ActiveRecord, you can remove this line. if defined?(ActiveRecord::Migration) && Rails::VERSION::MAJOR >= 4 ActiveRecord::Migration.check_pending! end 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 # If true, the base class of anonymous controllers will be inferred # automatically. This will be the default behavior in future versions of # rspec-rails. config.infer_base_class_for_anonymous_controllers = false # Run specs in random order to surface order dependencies. If you find an # order dependency and want to debug it, you can fix the order by providing # the seed, which is printed after each run. # --seed 1234 config.order = 'random' config.expect_with :rspec do |c| # Only allow expect syntax c.syntax = :expect end config.before do Msgr.logger = false end end
Version data entries
23 entries across 23 versions & 1 rubygems