Sha256: 09e7cba3f86e0d7ba7dfe3daa51fd3064abfc100920a77b276d2e53de9dbb7f1

Contents?: true

Size: 1.19 KB

Versions: 9

Compression:

Stored size: 1.19 KB

Contents

require 'spec_helper'

module Recurly
  describe BillingInfo do
    context "new record" do
      subject{BillingInfo.new}

      it { should respond_to(:first_name)}
      it { should respond_to(:last_name)}
      it { should respond_to(:address1)}
      it { should respond_to(:address2)}
      it { should respond_to(:city)}
      it { should respond_to(:state)}
      it { should respond_to(:zip)}
      it { should respond_to(:country)}
      it { should respond_to(:phone)}
      it { should respond_to(:ip_address)}
      it { should respond_to(:vat_number)}

      context "embedded credit card" do
        before(:each) do
          @credit_card = subject.credit_card
        end

        it{ @credit_card.should respond_to(:number)}
        it{ @credit_card.should respond_to(:last_four)}
        it{ @credit_card.should respond_to(:type)}
        it{ @credit_card.should respond_to(:verification_value)}
        it{ @credit_card.should respond_to(:month)}
        it{ @credit_card.should respond_to(:year)}
        it{ @credit_card.should respond_to(:start_month)}
        it{ @credit_card.should respond_to(:start_year)}
        it{ @credit_card.should respond_to(:issue_number)}

      end

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
recurly-0.4.16 spec/unit/billing_info_spec.rb
recurly-0.4.15 spec/unit/billing_info_spec.rb
recurly-0.4.14 spec/unit/billing_info_spec.rb
recurly-0.4.13 spec/unit/billing_info_spec.rb
recurly-0.4.11 spec/unit/billing_info_spec.rb
recurly-0.4.10 spec/unit/billing_info_spec.rb
recurly-0.4.8 spec/unit/billing_info_spec.rb
recurly-0.4.7 spec/unit/billing_info_spec.rb
recurly-0.4.6 spec/unit/billing_info_spec.rb