Sha256: 05a88193de6f95a14e3eeb9fa27de4b1fd71250c05150709e5fbf1e67014c97b
Contents?: true
Size: 702 Bytes
Versions: 6
Compression:
Stored size: 702 Bytes
Contents
ENV['RAILS_ENV'] = 'test' if Bundler.definition.dependencies.map(&:name).include?('protected_attributes') require 'protected_attributes' end require 'rails_app/config/environment' require 'rspec/rails' require 'audited' require 'audited_spec_helpers' require 'support/active_record/models' load "audited/sweeper.rb" # force to reload sweeper SPEC_ROOT = Pathname.new(File.expand_path('../', __FILE__)) Dir[SPEC_ROOT.join('support/*.rb')].each{|f| require f } RSpec.configure do |config| config.include AuditedSpecHelpers config.use_transactional_fixtures = false if Rails.version.start_with?('4.') config.use_transactional_tests = false if config.respond_to?(:use_transactional_tests=) end
Version data entries
6 entries across 6 versions & 2 rubygems