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:
commit
f655108c26
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue