Sha256: 6f31faa9ce34aa848499480e9c3e69994c4bf1ce229465d844321792284053db

Contents?: true

Size: 661 Bytes

Versions: 11

Compression:

Stored size: 661 Bytes

Contents

ENV["TEST"] = "1"

# 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-secure"

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

11 entries across 11 versions & 1 rubygems

Version Path
s3-secure-0.7.0 spec/spec_helper.rb
s3-secure-0.6.1 spec/spec_helper.rb
s3-secure-0.6.0 spec/spec_helper.rb
s3-secure-0.5.1 spec/spec_helper.rb
s3-secure-0.5.0 spec/spec_helper.rb
s3-secure-0.4.2 spec/spec_helper.rb
s3-secure-0.4.1 spec/spec_helper.rb
s3-secure-0.4.0 spec/spec_helper.rb
s3-secure-0.3.0 spec/spec_helper.rb
s3-secure-0.2.0 spec/spec_helper.rb
s3-secure-0.1.0 spec/spec_helper.rb