test/helper.rb in tracksperanto-1.7.5 vs test/helper.rb in tracksperanto-1.8.0
- old
+ new
@@ -70,17 +70,17 @@
yield(x) if block_given?
export_parabolics_with(x)
end
end
- def ensure_same_output(exporter_klass, reference_path)
+ def ensure_same_output(exporter_klass, reference_path, message = "Should write identical output")
io = StringIO.new
x = exporter_klass.new(io)
yield(x) if block_given?
export_parabolics_with(x)
io.close
- assert_equal File.read(reference_path), io.string
+ assert_equal File.read(reference_path), io.string, message
end
def export_parabolics_with(exporter)
exporter.start_export(1920, 1080)
[FIRST_TRACK, SECOND_TRACK].each do | t |
\ No newline at end of file