@@ -38,7 +38,7 @@ defmodule Mix.Tasks.Ecto.MigrationsTest do
3838 test "displays the up and down status for the default repo" do
3939 Application . put_env ( :ecto_sql , :ecto_repos , [ Repo ] )
4040
41- migrations = fn _ , _ ->
41+ migrations = fn _ , _ , _ ->
4242 [
4343 { :up , 0 , "up_migration_0" } ,
4444 { :up , 20160000000001 , "up_migration_1" } ,
@@ -66,7 +66,7 @@ defmodule Mix.Tasks.Ecto.MigrationsTest do
6666 end
6767
6868 test "migrations displays the up and down status for any given repo" do
69- migrations = fn _ , _ ->
69+ migrations = fn _ , _ , _ ->
7070 [
7171 { :up , 20160000000001 , "up_migration_1" } ,
7272 { :down , 20160000000002 , "down_migration_1" }
@@ -89,7 +89,7 @@ defmodule Mix.Tasks.Ecto.MigrationsTest do
8989 test "does not run from _build" do
9090 Application . put_env ( :ecto_sql , :ecto_repos , [ Repo ] )
9191
92- migrations = fn repo , [ path ] ->
92+ migrations = fn repo , [ path ] , _opts ->
9393 assert repo == Repo
9494 refute path =~ ~r/ _build/
9595 [ ]
@@ -105,7 +105,7 @@ defmodule Mix.Tasks.Ecto.MigrationsTest do
105105 File . mkdir_p! ( path2 )
106106
107107 run [ "-r" , to_string ( Repo ) , "--migrations-path" , path1 , "--migrations-path" , path2 ] ,
108- fn Repo , [ ^ path1 , ^ path2 ] -> [ ] end ,
108+ fn Repo , [ ^ path1 , ^ path2 ] , _opts -> [ ] end ,
109109 fn _ -> :ok end
110110 end
111111end
0 commit comments