diff --git a/mix.exs b/mix.exs index ee4eaa2..52cbd48 100644 --- a/mix.exs +++ b/mix.exs @@ -24,12 +24,9 @@ defmodule ExSieve.Mixfile do end def application do - [applications: applications(Mix.env())] + [extra_applications: [:logger]] end - defp applications(:test), do: [:postgrex, :ecto, :logger, :ex_machina, :ex_unit] - defp applications(_), do: [:logger] - defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] diff --git a/test/test_helper.exs b/test/test_helper.exs index 037301f..e247341 100644 --- a/test/test_helper.exs +++ b/test/test_helper.exs @@ -20,4 +20,9 @@ defmodule ExSieve.TestCase do end end +ExUnit.start() + +apps = [:postgrex, :ecto, :ex_machina] +Enum.map(apps, &Application.ensure_all_started/1) + ExSieve.Repo.start_link()