test/import/test_flame_import.rb in tracksperanto-2.6.2 vs test/import/test_flame_import.rb in tracksperanto-2.6.3
- old
+ new
@@ -84,13 +84,20 @@
assert_equal 5, trackers.length
assert_equal 61, trackers[0].length
end
- # a failing setup from flame 2012
def test_from_flame2012_with_empty_trackers
fixture = File.open(File.dirname(__FILE__) + '/samples/flame_stabilizer/flame_2012_another.stabilizer')
trackers = Tracksperanto::Import::FlameStabilizer.new(:io => fixture).to_a
assert_equal 1, trackers.length
assert_equal 100, trackers[0].length
+ end
+
+ def test_from_flame2012_with_traced_messages
+ fixture = File.open(File.dirname(__FILE__) + '/samples/flame_stabilizer/flame_2012_another.stabilizer')
+ output = ""
+ progress_block = lambda {|msg| output << msg }
+ trackers = Tracksperanto::Import::FlameStabilizer.new(:io => fixture, :progress_block => progress_block).to_a
+ assert output.include?('Parsing channel "tracker1/shift/x"')
end
end
\ No newline at end of file