Sha256: 9471fbc4c0b6f24216d1491422e01731688cce8e32c77b4e15644b2f380493ac

Contents?: true

Size: 525 Bytes

Versions: 21

Compression:

Stored size: 525 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

21 entries across 21 versions & 1 rubygems

Version Path
polish_invoicer-0.0.6 test/test_helper.rb