spec/moip2/api_spec.rb in moip2-0.1.0 vs spec/moip2/api_spec.rb in moip2-0.1.1
- old
+ new
@@ -3,11 +3,10 @@
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
@@ -18,8 +17,16 @@
end
end
describe "#invoice" do
it { expect(api.invoice).to be_a Moip2::InvoiceApi }
+ end
+
+ describe "#refund" do
+ it { expect(api.refund).to be_a Moip2::RefundApi }
+ end
+
+ describe "#keys" do
+ it { expect(api.keys).to be_a Moip2::KeysApi }
end
end