Permalink
Browse files

Correction on excel test

  • Loading branch information...
gkfabs committed May 31, 2011
1 parent 1f56996 commit abe9e8b29c569e7930fbdacb3b0c72866f26f46c
Showing with 3 additions and 2 deletions.
  1. +1 −0 README
  2. +2 −2 test/parser_test.rb
View
1 README
@@ -87,6 +87,7 @@ The tests require:
- gem install flexmock
- gem install pg (if you want to run the tests on pg)
- gem install spreadsheet
+- gem install tmail
The tests subfolder contains examples database.yml for mysql and postgres.
View
@@ -60,8 +60,8 @@ def test_excel2_parser
control = ETL::Control::Control.resolve(File.dirname(__FILE__) + '/excel2.ctl')
parser = control.sources.first.parser
rows = parser.collect { |row| row }
- assert_equal 1, rows.length
- assert_equal({:first_name=>"John", :last_name=>"Doe", :ssn=>222114545, :age=>31}, rows.first)
+ assert_equal 2, rows.length
+ assert_equal({:first_name=>"John", :last_name=>"Doe", :ssn=>222114545, :age=>31}, rows[1])
end
# Test the Apache combined log format parser

0 comments on commit abe9e8b

Please sign in to comment.