Sha256: fc23e2523dcbc8c0bd4ec5757207b5de79e19446a2a88089b73fc33ccf1e0d9a
Contents?: true
Size: 1.4 KB
Versions: 1
Compression:
Stored size: 1.4 KB
Contents
require "spec_helper" describe PxFusion do describe "configuration" do [:username, :password].each do |attr| it { described_class.should respond_to :"#{attr}=" } it { expect { described_class.send(:"#{attr}=", nil); described_class.send(attr) }.to raise_error } it { expect { described_class.send(attr) }.to_not raise_error } end it { described_class.should respond_to :default_currency } it { described_class.default_currency.should_not be_blank } it { described_class.endpoint.should eq "https://sec.paymentexpress.com/pxf/pxf.svc" } it { described_class.form_endpoint.should eq "https://sec.paymentexpress.com/pxmi3/pxfusionauth" } it { described_class.should respond_to :default_return_url } it { described_class.should respond_to :default_return_url= } end describe ".client" do it { described_class.client.should be_a PxFusion::Client } it { c = described_class.client; described_class.client.should eq c } end describe ".statuses" do it { described_class.statuses[:approved].should eq 0 } it { described_class.statuses[:declined].should eq 1 } it { described_class.statuses[:retry].should eq 2 } it { described_class.statuses[:invalid_post].should eq 3 } it { described_class.statuses[:unknown].should eq 4 } it { described_class.statuses[:cancelled].should eq 5 } it { described_class.statuses[:not_found].should eq 6 } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pxfusion-0.0.4 | spec/pxfusion_spec.rb |