Sha256: 2ccdd0e78e3253fb4e9088cc8f3b86fdbe4b4be0c0feddd3fd66ae2e5ead1bcc
Contents?: true
Size: 847 Bytes
Versions: 2
Compression:
Stored size: 847 Bytes
Contents
require "codeclimate-test-reporter" CodeClimate::TestReporter.start require "moip2" require "vcr" require "webmock" RSpec.configure do |config| end ENV['sandbox_url'] = 'https://sandbox.moip.com.br' VCR.configure do |c| c.cassette_library_dir = 'vcr_cassettes' c.hook_into :webmock # or :fakeweb c.ignore_hosts 'codeclimate.com' end # Helper methods def sandbox_auth Moip2::Auth::Basic.new('01010101010101010101010101010101', 'ABABABABABABABABABABABABABABABABABABABAB') end def sandbox_oauth Moip2::Auth::OAuth.new "d63tz2xwyu0ewrembove4j5cbv2otpd" end def sandbox_client Moip2::Client.new(:sandbox, sandbox_auth) end def sandbox_oauth_client Moip2::Client.new :sandbox, sandbox_oauth end def sanbox_client_with_header Moip2::Client.new(:sandbox, sandbox_auth, { headers: { "Moip-Account" => "MPA-UY765TYBL912" } } ) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
moip2-0.1.4 | spec/spec_helper.rb |
moip2-0.1.3 | spec/spec_helper.rb |