spec/spec_helper.rb in moip2-1.0.0 vs spec/spec_helper.rb in moip2-1.1.0

- old
+ new

@@ -5,12 +5,10 @@ require "simplecov" SimpleCov.start RSpec.configure do |config| end -ENV["sandbox_url"] = "https://sandbox.moip.com.br" -ENV["connect_sandbox_url"] = "https://connect-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" @@ -34,20 +32,11 @@ def sandbox_client Moip2::Client.new(:sandbox, sandbox_auth) end def sandbox_oauth_client - Moip2::Client.new :sandbox, sandbox_oauth + Moip2::Client.new(:sandbox, sandbox_oauth) end -def sanbox_client_with_header - Moip2::Client.new(:sandbox, sandbox_auth, headers: { "Moip-Account" => "MPA-UY765TYBL912" }) -end - -def sandbox_client_connect - Moip2::Client.new( - :sandbox, - sandbox_auth, - ENV["connect_sandbox_url"], - {}, - ) +def sandbox_connect_client + Moip2::ConnectClient.new(:sandbox, sandbox_auth) end