Sha256: 94eae302df2df6b3234bfa80f0aadccad5178257d84e535fe2019bb7fb04b9aa

Contents?: true

Size: 899 Bytes

Versions: 8

Compression:

Stored size: 899 Bytes

Contents

require "dotenv/load"
require "webmock/rspec"
require "bundler/setup"

require "digicert"
require "digicert/rspec"

Dir["./spec/support/**/*.rb"].sort.each { |file| require file }

RSpec.configure do |config|
  # Enable flags like --only-failures and --next-failure
  config.example_status_persistence_file_path = ".rspec_status"

  config.expect_with :rspec do |c|
    c.syntax = :expect
  end

  config.before :all do
    Digicert.configure do |digicert_config|
      digicert_config.debug_mode = false
      digicert_config.api_key = ENV["SECRET_DEV_API_KEY"] || "SECRET_KEY"
    end
  end

  # Skip the actual API calls by default
  config.filter_run_excluding api_call: true

  # Allow the net_connection when we actually want to
  # perform an actual API reques
  #
  config.before :each, api_call: true do
    Digicert.configuration.debug_mode = true
    WebMock.allow_net_connect!
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
digicert-1.0.0 spec/spec_helper.rb
digicert-0.5.0 spec/spec_helper.rb
digicert-0.4.1 spec/spec_helper.rb
digicert-0.4.0 spec/spec_helper.rb
digicert-0.3.1 spec/spec_helper.rb
digicert-0.3.0 spec/spec_helper.rb
digicert-0.2.0 spec/spec_helper.rb
digicert-0.1.2 spec/spec_helper.rb