Sha256: 87d70519e58fbf3d50af5dbd8c303aad9972252b2aad4d3da3f9e982d05284d9
Contents?: true
Size: 482 Bytes
Versions: 2
Compression:
Stored size: 482 Bytes
Contents
require_relative "helper" class TestCli < Minitest::Test def test_cli dir = File.dirname __FILE__ bin_file = File.join(dir, '..', 'bin', 'capitalone_pdf_to_json.rb') test_file = File.join(dir, 'data', 'test_statement.pdf') json_file = File.join(dir, 'data', 'test_statement.json') json = %x{"#{bin_file}" "#{test_file}"} actual = JSON.parse(json) expected = JSON.parse(IO.read(json_file)) assert_equal expected, actual end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
parse_capitalone_pdf_statement-1.1.0 | test/test_cli.rb |
parse_capitalone_pdf_statement-1.0.0 | test/test_cli.rb |