Sha256: 1ed8446314af0b46da124a4d158345bf7a2d62af801cdbe15ca311b58b354ff6

Contents?: true

Size: 804 Bytes

Versions: 4

Compression:

Stored size: 804 Bytes

Contents

require "moip2"

require "vcr"
require "webmock"
require "simplecov"
SimpleCov.start

RSpec.configure do |config|
end

VCR.configure do |c|
  c.cassette_library_dir = "vcr_cassettes"
  c.hook_into :webmock # or :fakeweb
  c.ignore_hosts "codeclimate.com"
  c.before_record do |i|
    i.response.body.force_encoding("UTF-8")
  end
end

# Helper methods
def sandbox_auth
  Moip2::Auth::Basic.new(
    "01010101010101010101010101010101",
    "ABABABABABABABABABABABABABABABABABABABAB",
  )
end

def sandbox_oauth
  Moip2::Auth::OAuth.new("9fdc242631454d4c95d82e27b4127394_v2")
end

def sandbox_client
  Moip2::Client.new(:sandbox, sandbox_auth)
end

def sandbox_oauth_client
  Moip2::Client.new(:sandbox, sandbox_oauth)
end

def sandbox_connect_client
  Moip2::ConnectClient.new(:sandbox, sandbox_auth)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
moip2-1.3.1 spec/spec_helper.rb
moip2-1.2.1 spec/spec_helper.rb
moip2-1.2.0 spec/spec_helper.rb
moip2-1.1.0 spec/spec_helper.rb