Sha256: 37b07589427eda438755e9f40d554159369784948cc27f21ce5414d7c007e845
Contents?: true
Size: 584 Bytes
Versions: 2
Compression:
Stored size: 584 Bytes
Contents
require 'spec_helper' module Spree describe PagseguroProvider do HOST = 'http://localhost:3000' context '#init_transaction' do let(:address) { build(:address_brazil) } let(:order) { create(:order_with_line_items, bill_address: address, ship_address: address) } let(:user) { create(:user, bill_address: address) } 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_pagseguro_oficial-1.1.1 | spec/models/spree/pagseguro_provider_spec.rb |
solidus_pagseguro_oficial-1.1.0 | spec/models/spree/pagseguro_provider_spec.rb |