diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-09-28 19:01:51 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-09-28 19:01:51 -0700 |
commit | f655108c260ccd334e494b7d6da8822b31cc2156 (patch) | |
tree | 256820d3be6adc184bb82e8c9184a3cc108e488f | |
parent | 4fd0f90549fb91be1c5446472790082ab2f72eae (diff) | |
parent | b4006db471a2f85f6bedeb3e6f9cc628214af54d (diff) | |
download | rails-f655108c260ccd334e494b7d6da8822b31cc2156.tar.gz rails-f655108c260ccd334e494b7d6da8822b31cc2156.tar.bz2 rails-f655108c260ccd334e494b7d6da8822b31cc2156.zip |
Merge pull request #7784 from morgoth/proper_test_names_for_assertions
Changed test names to match proper context
-rw-r--r-- | activesupport/test/test_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/test_test.rb b/activesupport/test/test_test.rb index d19aab1438..9516556844 100644 --- a/activesupport/test/test_test.rb +++ b/activesupport/test/test_test.rb @@ -100,11 +100,11 @@ 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_blank_true + def test_assert_present_true NOT_BLANK.each { |v| assert_present v } end - def test_assert_blank_false + def test_assert_present_false BLANK.each { |v| begin assert_present v |