Sha256: 583f4cd4134f67dd0ab67df9d4581d0eac12e92d34af9ee61838a37b8b7e2940
Contents?: true
Size: 736 Bytes
Versions: 15
Compression:
Stored size: 736 Bytes
Contents
require File.join(File.expand_path(File.dirname(__FILE__)), "..", "..", "..", "spec_helper") describe BillForward::Invoice do before :all do @client = BillForwardTest::TEST_CLIENT BillForward::Client.default_client = @client # Existing invoice supplied from test constants, as we cannot create invoices ourselves @invoice_id = BillForwardTest::USUAL_INVOICE_ID end subject (:invoice_id) { @invoice_id } describe '::get_by_id' do context 'where invoice exists' do it "gets the invoice" do invoice = BillForward::Invoice.get_by_id invoice_id expect(invoice.id).to eq(invoice_id) expect(invoice['@type']).to eq(BillForward::Invoice.resource_path.entity_name) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems