Skip to content

Commit

Permalink
Add jason to umbrella ecto deps. Fixes #3263
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed Jan 30, 2019
1 parent eb3eb71 commit 48df04c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion installer/templates/phx_umbrella/apps/app_name/mix.exs
Expand Up @@ -37,7 +37,8 @@ defmodule <%= app_module %>.MixProject do
defp deps do
[<%= if ecto do %>
{:ecto_sql, "~> 3.0"},
{:<%= adapter_app %>, ">= 0.0.0"}
{:<%= adapter_app %>, ">= 0.0.0"},
{:jason, "~> 1.0"}
<% end %>]
end

Expand Down
2 changes: 2 additions & 0 deletions installer/test/phx_new_umbrella_test.exs
Expand Up @@ -168,6 +168,7 @@ defmodule Mix.Tasks.Phx.New.UmbrellaTest do
# app deps
assert_file web_path(@app, "mix.exs"), fn file ->
assert file =~ "{:phoenix_ecto,"
assert file =~ "{:jason,"
end

# Ecto
Expand All @@ -176,6 +177,7 @@ defmodule Mix.Tasks.Phx.New.UmbrellaTest do
assert file =~ "aliases: aliases()"
assert file =~ "ecto.setup"
assert file =~ "ecto.reset"
assert file =~ "{:jason,"
end

assert_file app_path(@app, "config/dev.exs"), config
Expand Down

0 comments on commit 48df04c

Please sign in to comment.