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.26 test/test_helper.rb
polish_invoicer-0.0.25 test/test_helper.rb
polish_invoicer-0.0.24 test/test_helper.rb
polish_invoicer-0.0.23 test/test_helper.rb
polish_invoicer-0.0.22 test/test_helper.rb
polish_invoicer-0.0.21 test/test_helper.rb
polish_invoicer-0.0.20 test/test_helper.rb
polish_invoicer-0.0.19 test/test_helper.rb
polish_invoicer-0.0.18 test/test_helper.rb
polish_invoicer-0.0.17 test/test_helper.rb
polish_invoicer-0.0.16 test/test_helper.rb
polish_invoicer-0.0.15 test/test_helper.rb
polish_invoicer-0.0.14 test/test_helper.rb
polish_invoicer-0.0.13 test/test_helper.rb
polish_invoicer-0.0.12 test/test_helper.rb
polish_invoicer-0.0.11 test/test_helper.rb
polish_invoicer-0.0.10 test/test_helper.rb
polish_invoicer-0.0.9 test/test_helper.rb
polish_invoicer-0.0.8 test/test_helper.rb
polish_invoicer-0.0.7 test/test_helper.rb