Details
-
Type:
Defect
-
Status:
Closed
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: Release 1.1
-
Component/s: None
-
Labels:None
-
Approval:Ok
Description
If you call use-fixtures over and over again, it will simply compose the test deeper and deeper into a nesting of the fixture function.
�� (use-fixtures :each my-cleanup)
�� (deftest my-messy-test [...])
Load that a few times and you end up running the equivalent of:
(my-cleanup (my-cleanup (my-cleanup my-messy-test))).
Converted from http://www.assembla.com/spaces/clojure/tickets/194
Attachments:
0001-Don-t-repeatedly-compose-on-calls-to-use-fixtures.-F.patch - https://www.assembla.com/spaces/clojure/documents/cU7IgoS2Or3PCKeJe5aVNr/download/cU7IgoS2Or3PCKeJe5aVNr
0001-Don-t-repeatedly-compose-on-calls-to-use-fixtures.-F.patch - https://www.assembla.com/spaces/clojure/documents/a51RI-S2Wr3PxveJe5aVNr/download/a51RI-S2Wr3PxveJe5aVNr