aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-12-18 13:21:24 +0530
committerVipul A M <vipulnsward@gmail.com>2013-12-18 14:39:50 +0530
commit7bae2921ec51335ec87fde1980a1b568ce37fc1c (patch)
tree1e9d2893e4f66177415077d9b53fa14ddee04eb0 /activesupport/test
parentc141dfc838a5dca9f197814410fa5d44c143129c (diff)
downloadrails-7bae2921ec51335ec87fde1980a1b568ce37fc1c.tar.gz
rails-7bae2921ec51335ec87fde1980a1b568ce37fc1c.tar.bz2
rails-7bae2921ec51335ec87fde1980a1b568ce37fc1c.zip
Change all `MiniTest` to `Minitest` since, `MiniTest` namespace has been renamed to `Minitest`
Ref: https://github.com/seattlerb/minitest/blob/master/History.txt
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/deprecation_test.rb2
-rw-r--r--activesupport/test/test_test.rb8
2 files changed, 5 insertions, 5 deletions
diff --git a/activesupport/test/deprecation_test.rb b/activesupport/test/deprecation_test.rb
index 9674851b9d..d118b0ddbf 100644
--- a/activesupport/test/deprecation_test.rb
+++ b/activesupport/test/deprecation_test.rb
@@ -174,7 +174,7 @@ class DeprecationTest < ActiveSupport::TestCase
ActiveSupport::Deprecation.warn 'abc'
ActiveSupport::Deprecation.warn 'def'
end
- rescue MiniTest::Assertion
+ rescue Minitest::Assertion
flunk 'assert_deprecated should match any warning in block, not just the last one'
end
diff --git a/activesupport/test/test_test.rb b/activesupport/test/test_test.rb
index 5ed2da7e8b..8a71ef4324 100644
--- a/activesupport/test/test_test.rb
+++ b/activesupport/test/test_test.rb
@@ -21,10 +21,10 @@ class AssertDifferenceTest < ActiveSupport::TestCase
assert_equal true, assert_not(nil)
assert_equal true, assert_not(false)
- e = assert_raises(MiniTest::Assertion) { assert_not true }
+ e = assert_raises(Minitest::Assertion) { assert_not true }
assert_equal 'Expected true to be nil or false', e.message
- e = assert_raises(MiniTest::Assertion) { assert_not true, 'custom' }
+ e = assert_raises(Minitest::Assertion) { assert_not true, 'custom' }
assert_equal 'custom', e.message
end
@@ -73,7 +73,7 @@ class AssertDifferenceTest < ActiveSupport::TestCase
end
def test_array_of_expressions_identify_failure
- assert_raises(MiniTest::Assertion) do
+ assert_raises(Minitest::Assertion) do
assert_difference ['@object.num', '1 + 1'] do
@object.increment
end
@@ -81,7 +81,7 @@ class AssertDifferenceTest < ActiveSupport::TestCase
end
def test_array_of_expressions_identify_failure_when_message_provided
- assert_raises(MiniTest::Assertion) do
+ assert_raises(Minitest::Assertion) do
assert_difference ['@object.num', '1 + 1'], 1, 'something went wrong' do
@object.increment
end