require 'spec_helper'

describe "Quickeebooks::Online::Model::Invoice" do
  it "can parse invoice from XML" do
    xml = onlineFixture("invoice.xml")
    invoice = Quickeebooks::Online::Model::Invoice.from_xml(xml)
    invoice.header.balance.should == 0
    invoice.header.sales_term_id.value.should == "3"
    invoice.id.value.should == "13"
    invoice.line_items.count.should == 1
    invoice.line_items.first.unit_price.should == 225
  end
end

require 'spec_helper'

describe "Quickeebooks::Windows::Model::Invoice" do
  it "can parse invoice from XML" do
    xml = onlineFixture("invoice.xml")
    invoice = Quickeebooks::Windows::Model::Invoice.from_xml(xml)
    invoice.header.balance.should == 0
    invoice.header.sales_term_id.value.should == "3"
    invoice.id.value.should == "13"
    invoice.line_items.count.should == 1
    invoice.line_items.first.unit_price.should == 225
  end
end

Fix test for Windows::Invoice so it's actually using the right class
Fix test for Windows::Invoice so it's actually using the right class
