Sha256: c38eae98568e7decc4f404c6da80749200444fd718c28a26f31b6493c6855673
Contents?: true
Size: 1.01 KB
Versions: 20
Compression:
Stored size: 1.01 KB
Contents
ENV['RAILS_ENV'] = 'test' $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require "rails_app/config/environment" require 'rspec' require 'counter_culture' require 'paper_trail/frameworks/rspec' CI_TEST_RUN = (ENV['TRAVIS'] && 'TRAVIS') || (ENV['CIRCLECI'] && 'CIRCLE') || ENV["CI"] && 'CI' begin was, ActiveRecord::Migration.verbose = ActiveRecord::Migration.verbose, false unless ENV['SHOW_MIGRATION_MESSAGES'] load "#{File.dirname(__FILE__)}/schema.rb" ensure ActiveRecord::Migration.verbose = was unless ENV['SHOW_MIGRATION_MESSAGES'] end # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} ActiveRecord::Base.logger = Logger.new(STDOUT) ActiveRecord::Base.logger.level = 1 RSpec.configure do |config| config.fail_fast = true unless CI_TEST_RUN config.filter_run focus: true config.run_all_when_everything_filtered = true end
Version data entries
20 entries across 20 versions & 1 rubygems