test/ft_22_history.rb in openwferu-0.9.7 vs test/ft_22_history.rb in openwferu-0.9.8
- old
+ new
@@ -60,11 +60,32 @@
#assert \
# (history.entries.size == 36),
# "invalid history count : #{history.entries.size}"
assert \
- (history.entries.size > 33 and history.entries.size < 39),
+ history.entries.size == 22,
"invalid history count : #{history.entries.size}"
+ end
+
+ def test_history_1
+
+ @engine.init_service("history", FileHistory)
+
+ dotest(
+ TestDefinition0,
+ """a
+b
+c""")
+
+ @engine.ac["history"].output_file.flush
+
+ linecount = File.open("work/history.log") do |f|
+ f.readlines.size
+ end
+
+ assert \
+ linecount == 22,
+ "invalid history count : #{linecount}"
end
end