Sha256: 27732455e9938c80f7d8c57cccdc04b6a0c44bc8b9b8e5bf4e2746d9079287ff

Contents?: true

Size: 948 Bytes

Versions: 13

Compression:

Stored size: 948 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.treat_symbols_as_metadata_keys_with_true_values = true
  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

13 entries across 13 versions & 1 rubygems

Version Path
crypt_keeper-0.22.0 spec/spec_helper.rb
crypt_keeper-0.21.0 spec/spec_helper.rb
crypt_keeper-0.20.0 spec/spec_helper.rb
crypt_keeper-0.19.0 spec/spec_helper.rb
crypt_keeper-0.18.4 spec/spec_helper.rb
crypt_keeper-0.18.3 spec/spec_helper.rb
crypt_keeper-0.18.2 spec/spec_helper.rb
crypt_keeper-0.18.1 spec/spec_helper.rb
crypt_keeper-0.18.0 spec/spec_helper.rb
crypt_keeper-0.17.0 spec/spec_helper.rb
crypt_keeper-0.16.1 spec/spec_helper.rb
crypt_keeper-0.16.0 spec/spec_helper.rb
crypt_keeper-0.16.0.pre spec/spec_helper.rb