Sha256: 079a5b804f141a97d2066f9e39a0bde3401770ec9dccfd995464f46d8191859a

Contents?: true

Size: 1.15 KB

Versions: 7

Compression:

Stored size: 1.15 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)}

      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

7 entries across 7 versions & 1 rubygems

Version Path
recurly-0.4.5 spec/unit/billing_info_spec.rb
recurly-0.4.4 spec/unit/billing_info_spec.rb
recurly-0.4.3 spec/unit/billing_info_spec.rb
recurly-0.4.2 spec/unit/billing_info_spec.rb
recurly-0.4.1 spec/unit/billing_info_spec.rb
recurly-0.4.0 spec/unit/billing_info_spec.rb
recurly-0.3.4 spec/unit/billing_info_spec.rb