Sha256: 5150f93079bf0abfa95e3e0a24eb2733a2b2092d3777b1b3e2d138a17ab15c50

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

require 'bundler'
Bundler.setup(:default, :development)

require 'dotenv'
Dotenv.load
require 'patentscope'
require 'rspec'
require 'vcr'
require 'yaml'
require 'open-uri'

# generate versions of username and password with unsafe characters encoded
unsafe_characters = %q[$&+,/:;=?!@ "'<>#%{}|\^~[]`]
escaped_patentscope_webservice_username = URI::escape(ENV['PATENTSCOPE_WEBSERVICE_USERNAME'], unsafe_characters)
escaped_patentscope_webservice_password = URI::escape(ENV['PATENTSCOPE_WEBSERVICE_PASSWORD'], unsafe_characters)

VCR.configure do |config|
  config.cassette_library_dir = 'spec/cassettes'
  config.hook_into :webmock
  config.default_cassette_options = { record: :new_episodes }
  config.default_cassette_options = { match_requests_on: [:body] }
  config.configure_rspec_metadata!
  config.allow_http_connections_when_no_cassette = true
  config.filter_sensitive_data('*****') { escaped_patentscope_webservice_username }
  config.filter_sensitive_data('*****') { escaped_patentscope_webservice_password }
end

RSpec.configure do |config|
  # config.treat_symbols_as_metadata_keys_with_true_values = true
  config.order = 'random'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
patentscope-0.0.2 spec/spec_helper.rb