Sha256: 3ac92743d1cf4765c2564443a12854b657d4c138357a030b0eacd182f6fe724f

Contents?: true

Size: 480 Bytes

Versions: 5

Compression:

Stored size: 480 Bytes

Contents

require 'rspec'
require 'carrierwave'
require 'carrierwave-aws'

def source_environment_file!
  return unless File.exists?('.env')

  File.readlines('.env').each do |line|
    values = line.split('=')
    ENV[values.first] = values.last.chomp
  end
end

RSpec.configure do |config|
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.filter_run :focus
  config.order = 'random'
  config.run_all_when_everything_filtered = true

  source_environment_file!
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
carrierwave-aws-0.4.1 spec/spec_helper.rb
carrierwave-aws-0.4.0 spec/spec_helper.rb
carrierwave-aws-0.3.2 spec/spec_helper.rb
carrierwave-aws-0.3.1 spec/spec_helper.rb
carrierwave-aws-0.3.0 spec/spec_helper.rb