Skip to content

Commit

Permalink
include assertions from relevant version of test unit
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Sep 8, 2015
1 parent 2d53dee commit e5e0bee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/rspec/active_model/mocks/mock_model_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@
# This gem has no `lib/minitest.rb` file.
gem 'minitest' if defined?(Kernel.gem)
require 'minitest/unit'
Assertions = MiniTest::Assertions
include MiniTest::Assertions
elsif version >= '3.2.22'
begin
# Test::Unit "helpfully" sets up autoload for its `AutoRunner`.
Expand All @@ -443,7 +443,7 @@
Gemfile: `gem 'test-unit', '~> 3.0'` (#{e.message})"
ERR
end
Assertions = Test::Unit::Assertions
include Test::Unit::Assertions
else
raise LoadError, <<-ERR.squeeze
Ruby 2.2+ doesn't support this version of Rails #{version}
Expand Down

0 comments on commit e5e0bee

Please sign in to comment.