Sha256: 413aa845b1269a9e9ccfe5e16e1702b102b5793689d2f395f1a9e396d454e43c
Contents?: true
Size: 1.48 KB
Versions: 7
Compression:
Stored size: 1.48 KB
Contents
require "spec_helper" describe PayPal::Recurring::Response::ManageProfile do let(:paypal) { PayPal::Recurring.new(:profile_id => "I-89LD5VEHEVK4") } context "canceling" do context "when successful" do use_vcr_cassette "profile/cancel/success" subject { paypal.cancel } it { should be_success } it { should be_valid } end context "when failure" do use_vcr_cassette "profile/cancel/failure" subject { paypal.cancel } it { should_not be_success } it { should_not be_valid } its(:errors) { should have(1).item } end end context "reactivating" do context "when successful" do use_vcr_cassette "profile/reactivate/success" subject { paypal.reactivate } it { should be_success } it { should be_valid } end context "when failure" do use_vcr_cassette "profile/reactivate/failure" subject { paypal.reactivate } it { should_not be_success } it { should_not be_valid } its(:errors) { should have(1).item } end end context "suspending" do context "when successful" do use_vcr_cassette "profile/suspend/success" subject { paypal.suspend } it { should be_success } it { should be_valid } end context "when failure" do use_vcr_cassette "profile/suspend/failure" subject { paypal.suspend } it { should_not be_success } it { should_not be_valid } its(:errors) { should have(1).item } end end end
Version data entries
7 entries across 7 versions & 1 rubygems