Fork me on GitHub
#ring-swagger
<
2016-10-24
>
singen10:10:21

Hey guys, I’m testing my compojure-api based application and I’m running dry in answers for the following: How would one load a fixture for all tests? I wouldn’t want to put all my handler tests into one file.

singen11:10:30

Life will find a way, and so did I. I used a combination of in-ns and load to split my tests into multiple files.

jondejung13:10:07

@singen could You send me a gist / sample of how You solved this? I'm currently stuck on the same issue

jondejung13:10:17

@singen much appreciated

singen13:10:37

Absolutely, but we are currently playtesting our new game, so it will take a while

jondejung14:10:21

No Problem, as long as You're okay with showing me how to load fixtures with compojure / swagger I'll wait as long as I have to

danielgrosse14:10:27

How can I pass path-parameters to a liberator resource?

jondejung15:10:34

Thanks A Million

singen15:10:39

I can’t say anything about how idiomatic that stuff is, I’ve only used clojure for about a month

singen15:10:52

In fact, if anyone comes up with a better solution, I’d appreciate it.

ikitommi15:10:22

you have options to enable/disable the coercion on the c-api side. If you use coercion, the coerced parameter are read from the ctx normally - on the Liberator side.