Sha256: 0291d2a597d7344554e638575880ab15c35ffb3378ea8605ec5d0b10d287cbe5

Contents?: true

Size: 652 Bytes

Versions: 3

Compression:

Stored size: 652 Bytes

Contents

# frozen_string_literal: true

RSpec.describe LedgerSync::Adaptors::QuickBooksOnline::Expense, adaptor: :quickbooks_online do
  let(:adaptor) { quickbooks_online_adaptor }
  let(:attribute_updates) do
    {
      memo: "QA UPDATE #{rand_id}"
    }
  end

  let(:account) do
    create_resource_for(
      adaptor: adaptor,
      resource: FactoryBot.create(:account)
    )
  end

  let(:resource) do
    FactoryBot.create(
      :expense,
      account: account,
      line_items: FactoryBot.create_list(
        :expense_line_item,
        2,
        account: account
      )
    )
  end

  it_behaves_like 'a standard quickbooks_online resource'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ledger_sync-1.3.3 qa/quickbooks_online/expense_spec.rb
ledger_sync-1.3.2 qa/quickbooks_online/expense_spec.rb
ledger_sync-1.3.1 qa/quickbooks_online/expense_spec.rb