1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #7784 from morgoth/proper_test_names_for_assertions

Changed test names to match proper context
This commit is contained in:
Rafael Mendonça França 2012-09-28 19:01:51 -07:00
commit f655108c26

View file

@ -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