Sha256: 021c81584addc34378b62d5492a89ee1a74aed29620cee55b1cb1a1cec2906e0
Contents?: true
Size: 851 Bytes
Versions: 2
Compression:
Stored size: 851 Bytes
Contents
ENV["S3_ANTIVIRUS_TEST"] = "1" # Ensures aws api never called. Fixture home folder does not contain ~/.aws/credentials ENV['HOME'] = File.join(Dir.pwd,'spec/fixtures/home') ENV['AWS_REGION'] = "us-west-2" # CodeClimate test coverage: https://docs.codeclimate.com/docs/configuring-test-coverage # require 'simplecov' # SimpleCov.start require "pp" require "byebug" root = File.expand_path("../", File.dirname(__FILE__)) require "#{root}/lib/s3-antivirus" module Helper def execute(cmd) puts "Running: #{cmd}" if show_command? out = `#{cmd}` puts out if show_command? out end # Added SHOW_COMMAND because DEBUG is also used by other libraries like # bundler and it shows its internal debugging logging also. def show_command? ENV['DEBUG'] || ENV['SHOW_COMMAND'] end end RSpec.configure do |c| c.include Helper end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
s3-antivirus-0.2.0 | spec/spec_helper.rb |
s3-antivirus-0.1.0 | spec/spec_helper.rb |