@@ -38,7 +38,7 @@ defmodule Mix.Tasks.Ecto.MigrationsTest do
38
38
test "displays the up and down status for the default repo" do
39
39
Application . put_env ( :ecto_sql , :ecto_repos , [ Repo ] )
40
40
41
- migrations = fn _ , _ ->
41
+ migrations = fn _ , _ , _ ->
42
42
[
43
43
{ :up , 0 , "up_migration_0" } ,
44
44
{ :up , 20160000000001 , "up_migration_1" } ,
@@ -66,7 +66,7 @@ defmodule Mix.Tasks.Ecto.MigrationsTest do
66
66
end
67
67
68
68
test "migrations displays the up and down status for any given repo" do
69
- migrations = fn _ , _ ->
69
+ migrations = fn _ , _ , _ ->
70
70
[
71
71
{ :up , 20160000000001 , "up_migration_1" } ,
72
72
{ :down , 20160000000002 , "down_migration_1" }
@@ -89,7 +89,7 @@ defmodule Mix.Tasks.Ecto.MigrationsTest do
89
89
test "does not run from _build" do
90
90
Application . put_env ( :ecto_sql , :ecto_repos , [ Repo ] )
91
91
92
- migrations = fn repo , [ path ] ->
92
+ migrations = fn repo , [ path ] , _opts ->
93
93
assert repo == Repo
94
94
refute path =~ ~r/ _build/
95
95
[ ]
@@ -105,7 +105,7 @@ defmodule Mix.Tasks.Ecto.MigrationsTest do
105
105
File . mkdir_p! ( path2 )
106
106
107
107
run [ "-r" , to_string ( Repo ) , "--migrations-path" , path1 , "--migrations-path" , path2 ] ,
108
- fn Repo , [ ^ path1 , ^ path2 ] -> [ ] end ,
108
+ fn Repo , [ ^ path1 , ^ path2 ] , _opts -> [ ] end ,
109
109
fn _ -> :ok end
110
110
end
111
111
end
0 commit comments