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

Version Path
counter_culture-2.2.2 spec/spec_helper.rb
counter_culture-2.2.1 spec/spec_helper.rb
counter_culture-2.2.0 spec/spec_helper.rb
counter_culture-2.1.4 spec/spec_helper.rb
counter_culture-2.1.3 spec/spec_helper.rb
counter_culture-2.1.2 spec/spec_helper.rb
counter_culture-2.1.1 spec/spec_helper.rb
counter_culture-2.1.0 spec/spec_helper.rb
counter_culture-2.0.1 spec/spec_helper.rb
counter_culture-2.0.0 spec/spec_helper.rb
counter_culture-1.12.0 spec/spec_helper.rb
counter_culture-1.11.0 spec/spec_helper.rb
counter_culture-1.10.0 spec/spec_helper.rb
counter_culture-1.9.2 spec/spec_helper.rb
counter_culture-1.9.1 spec/spec_helper.rb
counter_culture-1.9.0 spec/spec_helper.rb
counter_culture-1.8.2 spec/spec_helper.rb
counter_culture-1.8.1 spec/spec_helper.rb
counter_culture-1.8.0 spec/spec_helper.rb
counter_culture-1.7.0 spec/spec_helper.rb