Sha256: a7b920d0f4ec853078989b7aa5519fa47e2641cbb1352eeafe9f39f393fec9ed

Contents?: true

Size: 911 Bytes

Versions: 1

Compression:

Stored size: 911 Bytes

Contents

require "simplecov"
require "dotenv/load"
require "byebug"

SimpleCov.start do
  add_filter "/spec/"
end

require "bing_ads_ruby_sdk"

Dir[File.join(BingAdsRubySdk.root_path, "spec", "support", "**", "*.rb")].sort.each { |f| require f }
Dir[File.join(BingAdsRubySdk.root_path, "log", "*.log")].sort.each do |log_file|
  File.open(log_file, "w") { |f| f.truncate(0) }
end

BingAdsRubySdk.configure do |conf|
  conf.log = true
  conf.logger.level = Logger::DEBUG
  conf.pretty_print_xml = true
  conf.filters = ["AuthenticationToken", "DeveloperToken", "CustomerId", "CustomerAccountId"]
end

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

  # Disable RSpec exposing methods globally on `Module` and `main`
  config.disable_monkey_patching!

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bing_ads_ruby_sdk-1.5.0 spec/spec_helper.rb