spec/lib/mundipagg/gateway_spec.rb in better-mundipagg-0.2.7 vs spec/lib/mundipagg/gateway_spec.rb in better-mundipagg-0.2.8
- old
+ new
@@ -7,11 +7,12 @@
before do
allow(Mundipagg::Client).to receive(:new).and_return(client)
end
describe "#purchase" do
- let(:boleto) { Mundipagg::Boleto.new bank_number: 123, bank_code: 987 }
+ let(:boleto) { Mundipagg::Boleto.new bank_number: 123, bank_code: 987,
+ instructions: "Pedido #123" }
let(:body) {
{
create_order_response: {
create_order_result: {
success: true
@@ -30,10 +31,11 @@
boleto_transaction_collection: {
boleto_transaction: {
amount_in_cents: 100,
bank_number: 123,
days_to_add_in_boleto_expiration_date: 5,
- nosso_numero: 987
+ nosso_numero: 987,
+ instructions: "Pedido #123"
}
}
}).and_return(gateway_response)
response = gateway.purchase(100, boleto)