Skip to content

Commit 3473cca

Browse files
committed
Change forcing test to use a real migrator
1 parent 0e64870 commit 3473cca

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/test_migration_tools.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,15 @@ def migration_proxy(m)
6060

6161
it "forcing" do
6262
assert !MigrationTools.forced?
63-
Kappa.new.migrate("up")
64-
6563
MigrationTools.forced!
6664
assert MigrationTools.forced?
6765

68-
Alpha.new.migrate("up")
66+
@task.migrator(0).run
6967

7068
begin
71-
Kappa.new.migrate("up")
69+
@task.migrator(3).run
7270
fail "You should not be able to run migrations without groups in forced mode"
73-
rescue RuntimeError => e
71+
rescue => e
7472
assert e.message =~ /Cowardly refusing/
7573
end
7674
end

0 commit comments

Comments
 (0)