Sha256: 540f65a524a3aedc641e1348bf2c4bbacbfbe3cb7e2ac3f630bc358a2b3b0814

Contents?: true

Size: 457 Bytes

Versions: 5

Compression:

Stored size: 457 Bytes

Contents

require 'dotenv/load'
require 'rspec'
require 'vcr'
require 'censys'

include Censys

def authorization_field
  require 'base64'
  token = "#{ENV['CENSYS_ID']}:#{ENV['CENSYS_SECRET']}"
  "Basic #{Base64.strict_encode64(token)}"
end

VCR.configure do |config|
  config.cassette_library_dir = "spec/fixtures/vcr_cassettes"
  config.hook_into :webmock
  config.configure_rspec_metadata!
  config.filter_sensitive_data("<CENSORED>") { authorization_field }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
censu-0.1.5 spec/spec_helper.rb
censu-0.1.4 spec/spec_helper.rb
censu-0.1.3 spec/spec_helper.rb
censu-0.1.2 spec/spec_helper.rb
censu-0.1.1 spec/spec_helper.rb