spec/moip2/api_spec.rb in moip2-0.1.4 vs spec/moip2/api_spec.rb in moip2-1.0.0
- old
+ new
@@ -1,19 +1,17 @@
describe Moip2::Api do
-
- let(:auth) { Moip2::Auth::Basic.new('', '') }
+ let(:auth) { Moip2::Auth::Basic.new("", "") }
let(:client) { Moip2::Client.new(:sandbox, auth) }
let(:api) { described_class.new client }
describe "#order" do
it "returns an OrderApi" do
expect(api.order).to be_a(Moip2::OrderApi)
end
-
end
- describe "#payment" do
+ describe "#payment" do
it "returns a PaymentApi" do
expect(api.payment).to be_a(Moip2::PaymentApi)
end
end
@@ -27,6 +25,26 @@
describe "#keys" do
it { expect(api.keys).to be_a Moip2::KeysApi }
end
+ describe "#customer" do
+ it { expect(api.customer).to be_a Moip2::CustomerApi }
+ end
+
+ describe "#multi_order" do
+ it { expect(api.multi_order).to be_a Moip2::MultiOrderApi }
+ end
+
+ describe "#multi_payment" do
+ it { expect(api.multi_payment).to be_a Moip2::MultiPaymentApi }
+ end
+
+ describe "#accounts" do
+ it { expect(api.accounts).to be_a Moip2::AccountsApi }
+ end
+
+ describe "#connect" do
+ it { expect(api.connect).to be_a Moip2::ConnectApi }
+ it { expect(api.connect.client.uri).to eq "https://connect-sandbox.moip.com.br" }
+ end
end