Skip to content

Instantly share code, notes, and snippets.

View singen's full-sized avatar

Tuomas Hakkarainen singen

View GitHub Profile
@singen
singen / another_test.clj
Last active October 24, 2016 15:17
Compojure api-test split into multiple files with same fixture
(in-ns 'my.test) # Note same ns as with test.clj
(use-fixtures :once with-db)
# You can now repeat use-fixtures in any other test
# you create in this namespace. While in the same namespace
# any fixture used with :once will only be run once in the
# entire namespace.
# You can even combine fixtures in different files.
# For example: (use-fixtures :once with-db with-test-data)

Keybase proof

I hereby claim:

  • I am singen on github.
  • I am singen (https://keybase.io/singen) on keybase.
  • I have a public key whose fingerprint is 3CA5 7743 4734 032E 785E 3B27 967E 58CF 5B04 4A07

To claim this, I am signing this object: