Sha256: 6630c9ebb6fb0e8d4d781d0dc4c7b78ea2b285b90f08a01ea339dc69d1f2ffff

Contents?: true

Size: 1.5 KB

Versions: 2

Compression:

Stored size: 1.5 KB

Contents

require 'spec_helper'

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

  describe 'fields' do
    it { should respond_to :id }
    it { should respond_to :subscription_id }
    it { should respond_to :opened_at }
    it { should respond_to :closed_at }
    it { should respond_to :settled_at }
    it { should respond_to :text_view }
    it { should respond_to :basic_html_view }
    it { should respond_to :html_view }
    it { should respond_to :future_payments }
    it { should respond_to :starting_balance_in_cents }
    it { should respond_to :ending_balance_in_cents }
    it { should respond_to :customer_first_name }
    it { should respond_to :customer_last_name }
    it { should respond_to :customer_organization }
    it { should respond_to :customer_shipping_address }
    it { should respond_to :customer_shipping_address_2 }
    it { should respond_to :customer_shipping_city }
    it { should respond_to :customer_shipping_state }
    it { should respond_to :customer_shipping_country }
    it { should respond_to :customer_shipping_zip }
    it { should respond_to :customer_billing_address }
    it { should respond_to :customer_billing_address_2 }
    it { should respond_to :customer_billing_city }
    it { should respond_to :customer_billing_state }
    it { should respond_to :customer_billing_country }
    it { should respond_to :customer_billing_zip }
    it { should respond_to :transactions }
    it { should respond_to :events }
    it { should respond_to :created_at }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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