Sha256: 114b4c45ac0778efa64a269d1240a79154f0777fc8059c7490295df928c47a8e
Contents?: true
Size: 857 Bytes
Versions: 2
Compression:
Stored size: 857 Bytes
Contents
ENV['CRYPT_KEEPER_IGNORE_LEGACY_DEPRECATION'] = "true" require 'coveralls' Coveralls.wear! require 'crypt_keeper' SPEC_ROOT = Pathname.new File.expand_path File.dirname __FILE__ AR_LOG = SPEC_ROOT.join('debug.log').to_s ENCRYPTION_PASSWORD = "supermadsecretstring" Dir[SPEC_ROOT.join('support/*.rb')].each{|f| require f } RSpec.configure do |config| config.run_all_when_everything_filtered = true config.filter_run :focus config.after :each do ActiveRecord::Base.descendants.each do |model| model.method(:delete_all).call end end config.after :suite do if File.exist?(AR_LOG) && ENV['TRAVIS'].present? `grep \"#{ENCRYPTION_PASSWORD}\" #{AR_LOG}` if $?.exitstatus == 0 raise StandardError, "\n\nERROR: The encryption password was found in the logs\n\n" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
crypt_keeper-2.0.1 | spec/spec_helper.rb |
crypt_keeper-2.0.0.rc2 | spec/spec_helper.rb |