Skip to content

Commit

Permalink
Add tests for integration scope
Browse files Browse the repository at this point in the history
  • Loading branch information
simonprev committed Apr 21, 2019
1 parent b7ddd85 commit ed573a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/accent/scopes/integration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ defmodule Accent.Scopes.Integration do
## Examples
iex> Accent.Scopes.Integration.from_data_repository(Accent.Integration, "test")
#Ecto.Query<from i0 in Accent.Integration, where: i0.service == ^\"test\">
#Ecto.Query<from i0 in Accent.Integration, where: fragment(\"?->>'repository' = ?\", i0.data, ^\"test\")>
"""
@spec from_data_repository(Ecto.Queryable.t(), String.t()) :: Ecto.Queryable.t()
def from_data_repository(query, repository) do
Expand Down
4 changes: 4 additions & 0 deletions test/scopes/integration_test.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
defmodule AccentTest.Scopes.Integration do
use ExUnit.Case, async: true
doctest Accent.Scopes.Integration
end

0 comments on commit ed573a1

Please sign in to comment.