Sha256: 254a0413cdadd1c430413f0e2a5064914816b2efd1dfcc6c52a54e2f8cc6a49d
Contents?: true
Size: 573 Bytes
Versions: 1
Compression:
Stored size: 573 Bytes
Contents
require 'spec_helper' module Spree describe PagseguroProvider do HOST = 'http://localhost:3000' context '#init_transaction' do let(:address) { build(:address_brazil) } let(:user) { create(:user) } let(:order) { create(:order_with_line_items, bill_address: address, ship_address: address, user: user) } subject { PagseguroProvider.new order, user, "#{HOST}/notify", "#{HOST}/confirm" } it 'responds success' do response = subject.init_transaction! expect(response.errors).to be_empty end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_pagseguro_oficial-1.1.2 | spec/models/spree/pagseguro_provider_spec.rb |