-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
30 additions
and
20 deletions.
There are no files selected for viewing
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
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
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
2 changes: 1 addition & 1 deletion
2
lib/code_corps/helpers/cloudex_test.ex → lib/code_corps/cloudex/cloudex_test.ex
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
defmodule Cloudex.CloudinaryApi.Test do | ||
defmodule CloudexTest do | ||
@moduledoc """ | ||
Testing stub for `Cloudex`, | ||
|
4 changes: 2 additions & 2 deletions
4
lib/code_corps/helpers/cloudinary_url.ex → lib/code_corps/cloudex/cloudinary_url.ex
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
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
7 changes: 4 additions & 3 deletions
7
...ode_corps/helpers/cloudinary_url_test.exs → ...ode_corps/cloudex/cloudinary_url_test.exs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
defmodule CodeCorps.Helpers.CloudinaryUrlTest do | ||
defmodule CodeCorps.Cloudex.CloudinaryUrlTest do | ||
alias CodeCorps.Cloudex.CloudinaryUrl | ||
use ExUnit.Case, async: true | ||
|
||
test "calls Cloudex.Url.for with correct arguments" do | ||
expected_args = {:test_public_id, %{test_option: nil}} | ||
args = CodeCorps.Helpers.CloudinaryUrl.for(:test_public_id, %{test_option: nil}, nil, nil, nil) | ||
args = CloudinaryUrl.for(:test_public_id, %{test_option: nil}, nil, nil, nil) | ||
assert expected_args == args | ||
end | ||
|
||
test "returns correct url if called without public_id" do | ||
expected_url = "#{Application.get_env(:code_corps, :asset_host)}/icons/type1_default_version1_color1.png" | ||
url = CodeCorps.Helpers.CloudinaryUrl.for(nil, %{}, "version1", "color1", "type1") | ||
url = CloudinaryUrl.for(nil, %{}, "version1", "color1", "type1") | ||
assert expected_url == url | ||
end | ||
end |
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
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
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