Sha256: 37e5c959bb59143925325f1241085707b8d42b0e717712e56971e31180e2e7dc

Contents?: true

Size: 683 Bytes

Versions: 3

Compression:

Stored size: 683 Bytes

Contents

ENV["GOOGLE_SSL_CERT_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/google-ssl-cert"

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

3 entries across 3 versions & 1 rubygems

Version Path
google-ssl-cert-0.2.1 spec/spec_helper.rb
google-ssl-cert-0.2.0 spec/spec_helper.rb
google-ssl-cert-0.1.0 spec/spec_helper.rb