Sha256: 0a04f1a73217ec3af2e858bd8236f060f4a0f1467fff29a3083727fd5161b2a1
Contents?: true
Size: 705 Bytes
Versions: 1
Compression:
Stored size: 705 Bytes
Contents
require 'spec_helper' describe Spree::BillingIntegration::Pagseguro::Checkout do context "redirect_url" do let(:payment_method) { create(:pagseguro_checkout) } let(:order) { create(:order_with_line_items) } # TODO Test with invalid credentials # expect { # payment_method.redirect_url(order) # }.to raise_error(PagSeguro::Errors::Unauthorized, "Credentials provided (e-mail and token) failed to authenticate") it "should return checkout url given valid credentials (see README)" do expect { payment_method.redirect_url(order) }.not_to raise_error expect(payment_method.redirect_url(order)).to start_with('https://pagseguro.uol.com.br/v2') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_pagseguro-2.1.3 | spec/models/spree/billing_integration/pagseguro_spec.rb |