Re: [ANN] conf-er 1.0.1

2013-05-06 Thread Adam Clements
If you have a look in the tests you'll see how I override the config there, but it is a bit naff making you with-redefs one of the library's internal vars, and double naff that you have to wrap it in a delay. (with-redefs [conf-er/config-map (delay {:test 42})] (fact (config :test) => 42)) If y

Re: [ANN] conf-er 1.0.1

2013-05-05 Thread Russell Mull
This looks simple and useful, thanks! Supposing I had a function that called this library, how could I go about testing it easily? That is, the configuration file becomes implicitly an input to the function, one that I'd like to be able to control from my tests. Perhaps something like this coul