Last active
September 27, 2016 13:37
-
-
Save radzserg/0cfddb37edf9362f3564a4647dd99387 to your computer and use it in GitHub Desktop.
pact config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule App.Pact do | |
@moduledoc """ | |
Application registry container | |
""" | |
use Pact | |
case Mix.env do | |
:dev -> | |
register "upload_manager", App.UploadManager.S3 | |
:test -> | |
register "upload_manager", App.UploadManager.Local | |
end | |
# now we can do like this upload_manager = App.Pact.get("upload_manager") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment