Skip to content

Commit e5e0bee

Browse files
committed
include assertions from relevant version of test unit
1 parent 2d53dee commit e5e0bee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/rspec/active_model/mocks/mock_model_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@
423423
# This gem has no `lib/minitest.rb` file.
424424
gem 'minitest' if defined?(Kernel.gem)
425425
require 'minitest/unit'
426-
Assertions = MiniTest::Assertions
426+
include MiniTest::Assertions
427427
elsif version >= '3.2.22'
428428
begin
429429
# Test::Unit "helpfully" sets up autoload for its `AutoRunner`.
@@ -443,7 +443,7 @@
443443
Gemfile: `gem 'test-unit', '~> 3.0'` (#{e.message})"
444444
ERR
445445
end
446-
Assertions = Test::Unit::Assertions
446+
include Test::Unit::Assertions
447447
else
448448
raise LoadError, <<-ERR.squeeze
449449
Ruby 2.2+ doesn't support this version of Rails #{version}

0 commit comments

Comments
 (0)