Closed dadair-ca closed 8 years ago
It appears that duct
doesn't (require ..)
vars in the :config
part of the system map. I don't think therefore fixtures-component
can be directly incorporated, and maybe an adapter component (in the software design sense) may be necessary.
I had to circumvent the issue by using the bindings
capabilities of duct's load-system
. Since this isn't a fixtures-component
issue, I'll close this.
Hello!
I'm trying to integrate fixtures-component into
duct
's new edn-based system configuration map.Here's a snippet of the map:
However, I keep getting
ArityException Wrong number of args (0) passed to: Symbol clojure.lang.AFn.throwArity (AFn.java:429)
in the REPL when I try to start the system. The stacktrace points to:which is:
Because of the error message, I'm assuming that it is a problem with the
(adapter)
call.I've tried manually
(require ..)
fixtures.component
, andfixtures.adapters.jdbc
in the namespace that then goes on to load the configuration map, in case those were not being found and causing some errors, but that hasn't helped the situation.Do you have any experience using
fixtures-component
in the new edn-based duct template? Or do you have any idea what I may be doing wrong here?Thanks for your help!