Sha256: 3a5d85f9586a9f0ec5efeb151a4ab64a3e8f9789e68c9ea2facb837eec624f19

Contents?: true

Size: 1.13 KB

Versions: 2

Compression:

Stored size: 1.13 KB

Contents

require 'spec_helper'

describe Charger::Subscription do
  subject { Charger::Subscription.new }

  describe 'fields' do
    it { should respond_to :id }
    it { should respond_to :state }
    it { should respond_to :balance_cents }
    it { should respond_to :current_period_started_at }
    it { should respond_to :current_period_ends_at }
    it { should respond_to :next_assessment_at }
    it { should respond_to :trial_started_at }
    it { should respond_to :trial_ended_at }
    it { should respond_to :activated_at }
    it { should respond_to :expires_at }
    it { should respond_to :created_at }
    it { should respond_to :updated_at }
    it { should respond_to :customer }
    it { should respond_to :product }
    it { should respond_to :credit_card }
    it { should respond_to :cancellation_message }
    it { should respond_to :canceled_at }
    it { should respond_to :signup_revenue }
    it { should respond_to :signup_payment_id }
    it { should respond_to :cancel_at_end_of_peroid }
    it { should respond_to :delayed_cancel_at }
    it { should respond_to :previous_state }
    it { should respond_to :coupon_code }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
charger-0.2.0 spec/charger/subscription_spec.rb
charger-0.1.1 spec/charger/subscription_spec.rb