Sha256: 689222b2b8407eb06cdffbc6cc2c777a3c1b97027001c4ae33ac717afa983c90
Contents?: true
Size: 1.62 KB
Versions: 74
Compression:
Stored size: 1.62 KB
Contents
# frozen_string_literal: true # Bundler setup require 'bundler' Bundler.require :rails, :test # 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
74 entries across 74 versions & 1 rubygems