Sha256: 8dd0941cf7a7959618512b80d71bfdb66faebd26dec8f784d74466309889621c

Contents?: true

Size: 635 Bytes

Versions: 1

Compression:

Stored size: 635 Bytes

Contents

require 'unit_test_helper'

class PrepaymentTest < Test::Unit::TestCase
  include TestHelper

  def setup
    @client = Xeroizer::PublicApplication.new(CONSUMER_KEY, CONSUMER_SECRET)
    mock_api("Prepayments")
    @prepayment = @client.Prepayment.first
  end

  context "prepayment attributes" do
    should "large-scale testing from API XML" do
      prepayments = @client.Prepayment.all
      prepayments.each do | prepayment |
        assert_equal(prepayment.attributes[:prepayment_id], prepayment.prepayment_id)
        assert_equal(prepayment.attributes[:contact][:contact_id], prepayment.contact_id)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xeroizer-3-pre-beta-3.0.0.pre.beta test/unit/models/prepayment_test.rb