spec/boletosimples/resources/customer_subscription_spec.rb in boletosimples-0.4.0 vs spec/boletosimples/resources/customer_subscription_spec.rb in boletosimples-0.4.1
- old
+ new
@@ -54,7 +54,13 @@
end
describe 'all', vcr: { cassette_name: 'resources/customer_subscription/all' } do
subject { BoletoSimples::CustomerSubscription.all }
it { expect(subject.first).to be_a_kind_of(BoletoSimples::CustomerSubscription) }
end
+ describe 'cancel' do
+ context 'success', vcr: { cassette_name: 'resources/customer_subscription/next_charge'} do
+ subject { BoletoSimples::CustomerSubscription.find(@customer_subscription.id) }
+ it { expect(subject.next_charge).to be_truthy }
+ end
+ end
end
end