test/import/test_boujou_import.rb in tracksperanto-2.1.1 vs test/import/test_boujou_import.rb in tracksperanto-2.2.0
- old
+ new
@@ -10,11 +10,11 @@
end
def test_parsing_from_fixture
fixture = File.open(File.dirname(__FILE__) + '/samples/boujou_features_text/boujou_txt_export.txt')
- parser = Tracksperanto::Import::Boujou.new(:width => 2560, :height => 1200)
- trackers = parser.parse(fixture)
+ parser = Tracksperanto::Import::Boujou.new(:io => fixture, :width => 2560, :height => 1200)
+ trackers = parser.to_a
assert_equal 21, trackers.length
tracker1 = trackers[1]
\ No newline at end of file