Sha256: 0fb16f68314c77ce43f5243c33ca391b67fc340d0ad6c05b563cb3e92ff8df7d

Contents?: true

Size: 527 Bytes

Versions: 5

Compression:

Stored size: 527 Bytes

Contents

require 'simplecov'
SimpleCov.start do
  add_filter '/test/'
end

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'polish_invoicer'
require 'minitest/autorun'

def create_valid_invoice
  invoice = PolishInvoicer::Invoice.new({
    number: '1/2014', create_date: Date.today, trade_date: Date.today,
    seller: ['Seller'], buyer: ['Buyer'],
    seller_nip: '123-123-22-33', buyer_nip: '554-333-22-11',
    item_name: 'Title', price: 123.45, payment_date: Date.today
  })
  assert invoice.valid?
  invoice
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
polish_invoicer-0.0.5 test/test_helper.rb
polish_invoicer-0.0.4 test/test_helper.rb
polish_invoicer-0.0.3 test/test_helper.rb
polish_invoicer-0.0.2 test/test_helper.rb
polish_invoicer-0.0.1 test/test_helper.rb