aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-07-01 13:15:01 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-07-01 13:15:01 -0700
commitcd74f0292f0e4caa13fae2b9869f5f190c081839 (patch)
treeec9d318873b86b3d25c0eeba8d4b4cf540301a64 /activesupport/test
parentb6e061459b6a53959e26f94a750ccc9528116e05 (diff)
parent74ebc451c92f1788f6689f085490f8a5156dde4e (diff)
downloadrails-cd74f0292f0e4caa13fae2b9869f5f190c081839.tar.gz
rails-cd74f0292f0e4caa13fae2b9869f5f190c081839.tar.bz2
rails-cd74f0292f0e4caa13fae2b9869f5f190c081839.zip
Merge pull request #11224 from senny/remove_assert_blank_and_assert_present
remove deprecated `assert_present` and `assert_blank`.
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/test_test.rb48
1 files changed, 0 insertions, 48 deletions
diff --git a/activesupport/test/test_test.rb b/activesupport/test/test_test.rb
index 68f9ec6c00..0c8cc1f883 100644
--- a/activesupport/test/test_test.rb
+++ b/activesupport/test/test_test.rb
@@ -87,54 +87,6 @@ class AssertDifferenceTest < ActiveSupport::TestCase
end
end
-class AssertBlankTest < ActiveSupport::TestCase
- BLANK = [ EmptyTrue.new, nil, false, '', ' ', " \n\t \r ", [], {} ]
- NOT_BLANK = [ EmptyFalse.new, Object.new, true, 0, 1, 'x', [nil], { nil => 0 } ]
-
- def test_assert_blank_true
- BLANK.each { |value|
- assert_deprecated { assert_blank value }
- }
- end
-
- def test_assert_blank_false
- NOT_BLANK.each { |v|
- assert_deprecated {
- begin
- assert_blank v
- fail 'should not get to here'
- rescue Exception => e
- assert_match(/is not blank/, e.message)
- end
- }
- }
- end
-end
-
-class AssertPresentTest < ActiveSupport::TestCase
- BLANK = [ EmptyTrue.new, nil, false, '', ' ', " \n\t \r ", [], {} ]
- NOT_BLANK = [ EmptyFalse.new, Object.new, true, 0, 1, 'x', [nil], { nil => 0 } ]
-
- def test_assert_present_true
- NOT_BLANK.each { |v|
- assert_deprecated { assert_present v }
- }
- end
-
- def test_assert_present_false
- BLANK.each { |v|
- assert_deprecated {
- begin
- assert_present v
- fail 'should not get to here'
- rescue Exception => e
- assert_match(/is blank/, e.message)
- end
- }
- }
- end
-end
-
class AlsoDoingNothingTest < ActiveSupport::TestCase
end