Sha256: 1c460515455371f56ba9db23b910c88f3d8e2a1c0ba695f033dba82b5f44c085
Contents?: true
Size: 772 Bytes
Versions: 1
Compression:
Stored size: 772 Bytes
Contents
require 'spec_helper' describe Aptible::Billing::BillingDetail do describe '#can_manage_compliance?' do it 'should return true with compliance plan' do subject.stub(:plan) { 'production' } expect(subject.can_manage_compliance?).to be_true end it 'should return false without compliance plan' do subject.stub(:plan) { 'platform' } expect(subject.can_manage_compliance?).to be_false end end describe '#subscribed?' do it 'should return true with valid subscription ID' do subject.stub(:stripe_subscription_id) { 'sub_4YrmiVa3vMpaGA' } expect(subject.subscribed?).to be_true end it 'should return false without valid subscription ID' do expect(subject.subscribed?).to be_false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aptible-billing-0.1.0 | spec/aptible/billing/billing_detail_spec.rb |