Skip to content

Commit 2c18abc

Browse files
greg-rychlewskidkuku
authored andcommitted
Fix tests (elixir-ecto#634)
1 parent 64904fc commit 2c18abc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/support/test_repo.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,21 @@ defmodule EctoSQL.TestAdapter do
5555

5656
def execute(_, _, {:nocache, {:all, query}}, _, opts) do
5757
%{from: %{source: {"schema_migrations", _}}} = query
58-
:schema_migrations = opts[:ecto_query]
58+
:schema_migration = opts[:ecto_query]
5959
versions = MigrationsAgent.get()
6060
{length(versions), Enum.map(versions, &[elem(&1, 0)])}
6161
end
6262

6363
def execute(_, _, {:nocache, {:delete_all, query}}, params, opts) do
6464
%{from: %{source: {"schema_migrations", _}}} = query
6565
[version] = params
66-
:schema_migrations = opts[:ecto_query]
66+
:schema_migration = opts[:ecto_query]
6767
MigrationsAgent.down(version, opts)
6868
{1, nil}
6969
end
7070

7171
def insert(_, %{source: "schema_migrations"}, val, _, _, opts) do
72-
:schema_migrations = opts[:ecto_query]
72+
:schema_migration = opts[:ecto_query]
7373
version = Keyword.fetch!(val, :version)
7474
MigrationsAgent.up(version, opts)
7575
{:ok, []}

0 commit comments

Comments
 (0)