File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 22require 'minitest/autorun'
33require 'minitest/spec'
44require 'minitest/rg'
5- require 'mocha/setup '
5+ require 'mocha/minitest '
66require 'active_support/all'
77require 'migration_tools'
88
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments