Sha256: f0d63af43e8d9774e4f85642c272c71e37b0bde0e8eb1b209f412e551e6f7056

Contents?: true

Size: 884 Bytes

Versions: 6

Compression:

Stored size: 884 Bytes

Contents

ENV['ARMOR_ITER'] ||= "10"
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

6 entries across 6 versions & 1 rubygems

Version Path
crypt_keeper-2.0.0.rc1 spec/spec_helper.rb
crypt_keeper-1.1.1 spec/spec_helper.rb
crypt_keeper-1.1.0 spec/spec_helper.rb
crypt_keeper-1.0.1 spec/spec_helper.rb
crypt_keeper-1.0.0 spec/spec_helper.rb
crypt_keeper-1.0.0.beta1 spec/spec_helper.rb