Sha256: 89fdd2906fc55e87ad24c66060d214f635cf4e814f77d3baffb4a57bcf85082d
Contents?: true
Size: 740 Bytes
Versions: 2
Compression:
Stored size: 740 Bytes
Contents
require 'spec_helper' describe PensioAPI::Callback do describe ".parse_success" do let(:response) { PensioAPI::Callback.parse_success(file_fixture("success_callback.xml")) } it "should return a SuccessCallback response" do expect(response).to be_an_instance_of(PensioAPI::Responses::SuccessCallback) expect(response.success?).to be_true end end describe ".parse_failure" do let(:response) { PensioAPI::Callback.parse_failure(file_fixture("subscription_failure_callback.xml")) } it "should return a SubscriptionFailureCallback response" do expect(response).to be_an_instance_of(PensioAPI::Responses::SubscriptionFailureCallback) expect(response.success?).to be_true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pensio_api-0.2.3 | spec/lib/pensio_api/callback_spec.rb |
pensio_api-0.2.2 | spec/lib/pensio_api/callback_spec.rb |