Permalink
Browse files

Add test for CsvDoctor

  • Loading branch information...
1 parent acbc4af commit 9a120a01a9b270c166e3b6d63e7aad5791828673 @bycoffe bycoffe committed Dec 11, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 spec/csv_spec.rb
View
@@ -0,0 +1,14 @@
+require 'spec_helper'
+
+describe Fech::Csv do
+
+ before do
+ @filing = Fech::Filing.new(723604, :csv_parser => Fech::CsvDoctor)
+ @filing.stubs(:file_path).returns(File.join(File.dirname(__FILE__), 'data', '723604.fec'))
+ end
+
+ it "should parse a filing using CsvDoctor" do
+ @filing.rows_like(//) { |row| nil }
+ end
+
+end

0 comments on commit 9a120a0

Please sign in to comment.