Skip to content

Commit 91de607

Browse files
committed
Fix deprecation warnings
1 parent 5320d5f commit 91de607

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
require 'minitest/autorun'
33
require 'minitest/spec'
44
require 'minitest/rg'
5-
require 'mocha/setup'
5+
require 'mocha/minitest'
66
require 'active_support/all'
77
require 'migration_tools'
88

test/test_migration_tools.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,13 @@ def migration_proxy(m)
133133
include ActiveSupport::Testing::Stream
134134
end
135135
it "abort_if_pending_migrations_with_group_with_migrations" do
136-
lambda {
137-
silence_stream(STDOUT) do
138-
silence_stream(STDERR) do
136+
assert_raises(SystemExit, "did not abort") do
137+
silence_stream($stdout) do
138+
silence_stream($stderr) do
139139
Rake::Task["db:abort_if_pending_migrations:before"].invoke
140140
end
141141
end
142-
}.must_raise(SystemExit, "did not abort")
142+
end
143143
end
144144

145145
it "migrate_group_with_group_without_pending" do

0 commit comments

Comments
 (0)