captain-fact
captain-fact copied to clipboard
Behaviour depending on environments should be configured not hardcoded
In several places, the code behaviour rely on which env it is running on
Places should be listed down here :
apps/captain_fact/lib/captain_fact/accounts/accounts.ex#fetch_picture (now line 182)
The right solution is to implement test purpose module and to configure it. An example for such thing is the Arc storage : S3 in production, local in dev and test