test/import/test_boujou_import.rb in tracksperanto-1.8.4 vs test/import/test_boujou_import.rb in tracksperanto-1.9.0
- old
+ new
@@ -10,12 +10,10 @@
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
- parser.width = 2560
- parser.height = 1200
+ parser = Tracksperanto::Import::Boujou.new(:width => 2560, :height => 1200)
trackers = parser.parse(fixture)
assert_equal 20, trackers.length
tracker1 = trackers[1]
\ No newline at end of file