mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #27973 from kenta-s/add-missing-test-for-time-blank
Add Time#blank? to blank_test
This commit is contained in:
commit
acdbe70a02
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class BlankTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
BLANK = [ EmptyTrue.new, nil, false, "", " ", " \n\t \r ", " ", "\u00a0", [], {} ]
|
||||
NOT = [ EmptyFalse.new, Object.new, true, 0, 1, "a", [nil], { nil => 0 } ]
|
||||
NOT = [ EmptyFalse.new, Object.new, true, 0, 1, "a", [nil], { nil => 0 }, Time.now ]
|
||||
|
||||
def test_blank
|
||||
BLANK.each { |v| assert_equal true, v.blank?, "#{v.inspect} should be blank" }
|
||||
|
|
Loading…
Reference in a new issue