I have a number of average facts that have settings / breaks that are almost, but not quite, completely identical.
(against-background [(before :contents (setup!)) (before :contents (data)) (before :facts (set-access)) (after :contents (teardown!)] (facts "about this thing i am testing " ; ... )) (against-background [(before :contents (setup!)) (before :contents (data)) (before :facts (set-other-access)) (after :contents (teardown!)] (facts "about this other thing i am testing " ; ... ))
I would like to wrap the backgrounds in something reusable and preferably parameterizable so that I can reuse them, but I am having problems with this. Midier tells me that nothing but the above is the expected shape of the background.
source share