My unit tests require certain setup before every
fact. It seems that the only option available that would let me define a similar behavior would be a call to
:facts, but it executes before a
facts call and before every nested
fact call and I need something that would execute exclusively before
Here’s an example that might help describe:
(background (before :facts (println "before") :after (println "after")))
(fact "should add when there's something to add"
(fact "should fail to add when there's nothing to add"
before ; i'd like to skip the call generating this output
after ; and this last one too
But I’d like to skip the first call to
(println "before") and the last call to