lib/smilodon.rb in smilodon-0.2.5 vs lib/smilodon.rb in smilodon-0.2.6
- old
+ new
@@ -66,11 +66,14 @@
# populates 'TestFile', :before => :inactivate
send(before) if before
rows = parser.parse(read(f))
rows.each_with_index do |row, index|
- row = rows.shift if index == 0 && header
- process(row)
+ if index == 0 && header
+ row = header = rows.shift
+ else
+ process(row)
+ end
end
end
# Return true when all rows are processed.
true