Skip to content

Instantly share code, notes, and snippets.

@srbaker

srbaker/Output Secret

Created January 9, 2013 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srbaker/d0bb1424a0a188ac83ae to your computer and use it in GitHub Desktop.
Save srbaker/d0bb1424a0a188ac83ae to your computer and use it in GitHub Desktop.
Stevens-MacBook-Air:invoicing_app srbaker$ maglev-ruby test_invoice.rb
Run options: --seed 18641
# Running tests:
during at_exit handler 1: error , a ArgumentError occurred (error 2718), too few arguments
Stevens-MacBook-Air:invoicing_app srbaker$
require 'minitest/autorun'
class TestInvoice < MiniTest::Unit::TestCase
def test_new_invoice
invoice = Invoice.new Money.new(12345), '123456789', '98765'
assert_equal Money.new(12345), invoice.amount
assert_equal '123456789', invoice.number
assert_equal '98765', invoice.customer_number
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment