我找不到任何能在所有事实之后运行的Midje函数。
这是代码:
(background
(before :contents (println "Before All Facts"))
(after :contents (println "After All Facts"))
(before :facts (println "Before Each Fact"))
(after :facts (println "After Each Fact")))
实际输出为:
Before All Facts
After All Facts
Before Each Fact
After Each Fact
预期输出为:
Before All Facts
Before Each Fact
After Each Fact
After All Facts