From ed573a18fe3d797203afdf1affbb27bc9d1ab2f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Pr=C3=A9vost?= Date: Sun, 21 Apr 2019 14:10:57 -0400 Subject: [PATCH] Add tests for integration scope --- lib/accent/scopes/integration.ex | 2 +- test/scopes/integration_test.exs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 test/scopes/integration_test.exs diff --git a/lib/accent/scopes/integration.ex b/lib/accent/scopes/integration.ex index 7ef68c8f6..6ac2c5d4d 100644 --- a/lib/accent/scopes/integration.ex +++ b/lib/accent/scopes/integration.ex @@ -27,7 +27,7 @@ defmodule Accent.Scopes.Integration do ## Examples iex> Accent.Scopes.Integration.from_data_repository(Accent.Integration, "test") - #Ecto.Query + #Ecto.Query>'repository' = ?\", i0.data, ^\"test\")> """ @spec from_data_repository(Ecto.Queryable.t(), String.t()) :: Ecto.Queryable.t() def from_data_repository(query, repository) do diff --git a/test/scopes/integration_test.exs b/test/scopes/integration_test.exs new file mode 100644 index 000000000..4f455afce --- /dev/null +++ b/test/scopes/integration_test.exs @@ -0,0 +1,4 @@ +defmodule AccentTest.Scopes.Integration do + use ExUnit.Case, async: true + doctest Accent.Scopes.Integration +end