Sha256: 8dc39777fcae4784365ee38f72637e0f03eb5573a4e72c9a1735eb3a2c7e2040
Contents?: true
Size: 661 Bytes
Versions: 1
Compression:
Stored size: 661 Bytes
Contents
require 'unit_test_helper' class JournalLineTest < Test::Unit::TestCase include TestHelper include Xeroizer::Record def setup @client = Xeroizer::PublicApplication.new(CONSUMER_KEY, CONSUMER_SECRET) end it "journal_line tracking specified correctly" do journal = @client.Journal.build journal_line = journal.add_journal_line({}) journal_line.add_tracking_category(:name => "Name 1", :option => "Option 1") journal_line.add_tracking_category(:name => "Name 2", :option => "Option 2") doc = Nokogiri::XML(journal_line.to_xml) assert_equal 2, doc.xpath("/JournalLine/TrackingCategories/TrackingCategory").size 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/journal_line_test.rb |