Sha256: b3e2cb2bcd52de9ff0e16be07fcfb8bb7cc730a28958d1b7404ae10a3292143f
Contents?: true
Size: 1022 Bytes
Versions: 2
Compression:
Stored size: 1022 Bytes
Contents
require 'test_helper' class RepeatingInvoiceTest < Test::Unit::TestCase include TestHelper def setup @client = Xeroizer::PublicApplication.new(CONSUMER_KEY, CONSUMER_SECRET) mock_api('RepeatingInvoices') end context "GET" do should "have return repeating invoices" do repeating_invoices = @client.RepeatingInvoice.all(page: 1) assert_equal 1, repeating_invoices.size repeating_invoice = repeating_invoices.first assert_equal "PowerDirect", repeating_invoice.contact_name assert_equal BigDecimal(90), repeating_invoice.total assert_equal true, repeating_invoice.accounts_payable? schedule = repeating_invoice.schedule assert_equal 1, schedule.period assert_equal 'MONTHLY', schedule.unit assert_equal 10, schedule.due_date assert_equal 'OFFOLLOWINGMONTH', schedule.due_date_type assert_equal Date.new(2013,1,21), schedule.start_date assert_equal Date.new(2014,3,23), schedule.next_scheduled_date end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xeroizer-2.20.0 | test/unit/models/repeating_invoice_test.rb |
xeroizer-2.19.0 | test/unit/models/repeating_invoice_test.rb |