Skip to content

Commit

Permalink
Part 5: Import TestHelpers to ConnCase & DataCase
Browse files Browse the repository at this point in the history
  • Loading branch information
thebrianemory committed Jan 15, 2019
1 parent 1f18dc6 commit 0d9a519
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/support/conn_case.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ defmodule CatcastsWeb.ConnCase do
quote do
# Import conveniences for testing with connections
use Phoenix.ConnTest

import Catcasts.TestHelpers

alias CatcastsWeb.Router.Helpers, as: Routes

# The default endpoint for testing
Expand Down
1 change: 1 addition & 0 deletions test/support/data_case.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ defmodule Catcasts.DataCase do
import Ecto.Changeset
import Ecto.Query
import Catcasts.DataCase
import Catcasts.TestHelpers
end
end

Expand Down

0 comments on commit 0d9a519

Please sign in to comment.