test/unit/models/prepayment_test.rb in xeroizer-2.20.0 vs test/unit/models/prepayment_test.rb in xeroizer-3.0.0

- old
+ new

@@ -1,15 +1,15 @@ -require 'test_helper' +require 'unit_test_helper' class PrepaymentTest < Test::Unit::TestCase include TestHelper - + def setup - @client = Xeroizer::PublicApplication.new(CONSUMER_KEY, CONSUMER_SECRET) + @client = Xeroizer::OAuth2Application.new(CLIENT_ID, CLIENT_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)