Sha256: a00c728e2d5ce359b5ce8486f5ea829f6b1f2d413afddfc7f10a161199172561

Contents?: true

Size: 559 Bytes

Versions: 3

Compression:

Stored size: 559 Bytes

Contents

require 'spec_helper'

describe Jortt::Client::LedgerAccounts, :vcr do
  let(:client) { Jortt.client(ENV['JORTT_CLIENT_ID'], ENV['JORTT_CLIENT_SECRET']) }

  describe '#index' do
    subject { client.ledger_accounts.index }

    it "returns invoices" do
      expect(subject.count).to be > 0
      expect(subject.first).to eq(
        "ledger_account_id" => "05a59e27-489f-466d-adf7-fc06f576d4ec",
        "name" => "Omzet",
        "parent_ledger_account_id" => "105ea7d7-8bb5-499e-9823-8324826b6563",
        "selectable" => false
      )
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jortt-6.1.0 spec/jortt/client/ledger_accounts_spec.rb
jortt-6.0.0 spec/jortt/client/ledger_accounts_spec.rb
jortt-5.0.0 spec/jortt/client/ledger_accounts_spec.rb