Sha256: de96df0a37b0b4bb9226425715900055a935f19999a4fccbf2756293b143b9a0

Contents?: true

Size: 699 Bytes

Versions: 3

Compression:

Stored size: 699 Bytes

Contents

require 'vcr'
require 'webmock'
require 'webmock/rspec'
require 'yaml'
require 'cgi'

RSpec.configure do |config|
  config.include WebMock::API
  config.before(:each) do
    WebMock.reset!
    VCR.configure do |c|
      c.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
      c.allow_http_connections_when_no_cassette = true
      c.hook_into :webmock

      # Created a yml file with credentials 
      # ignored by git repository

      
      c.filter_sensitive_data('<USERNAME>') { ENV['FORMHUB_USERNAME'] }
      c.filter_sensitive_data('<PASSWORD>') { CGI.escape ENV['FORMHUB_PASSWORD'] }
      c.filter_sensitive_data('<PASSWORD>') { ENV['FORMHUB_PASSWORD'] }

      
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
formhub_ruby-0.0.8.4 spec/spec_helper.rb
formhub_ruby-0.0.8.3 spec/spec_helper.rb
formhub_ruby-0.0.8 spec/spec_helper.rb