Am Dienstag, 10. September 2013 09:19:35 UTC+2 schrieb Alexandr Kurilin:

>
>    - Something in the middle where perhaps you agree to never directly 
>    reference the configs map from your models (again, thinking MVC here) and 
>    instead only ever access it from controllers, and pass the necessary 
>    options along down to the model functions. This way you can test both 
>    controllers and models in isolation in purity.
>
>
I'd do the following: for every layout of your application (persistence, 
datamodel, web) define one or more vars that hold the configuration 
specific for that layer. Testing a layer is easy and documentation of the 
layer gives you the necessary information about the configuration vars. 

-billy.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to