Sha256: bd9b3dc671416296394a40b561d87d26d5301f8c9ca66a142a45176cdb03fb69

Contents?: true

Size: 533 Bytes

Versions: 1

Compression:

Stored size: 533 Bytes

Contents

require_relative 'test_helper'

class GlManualEntryTest < Skr::TestCase

    def test_notes_are_copied
        gle = GlManualEntry.new({ notes: 'A good test' })
        tran = gle.gl_transaction = GlTransaction.new( location: Location.default )
        tran.add_posting( amount: 33.42, debit: skr_gl_accounts(:cash), credit: skr_gl_accounts(:inventory) )

        assert_saves gle
        assert_equal gle.notes, tran.description
    end

    def test_querying_using_visible_id
        GlManualEntry.with_visible_id( 23)
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stockor-core-0.2 test/gl_manual_entry_test.rb