aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAndrew White <pixeltrix@users.noreply.github.com>2017-02-12 13:17:30 +0000
committerGitHub <noreply@github.com>2017-02-12 13:17:30 +0000
commitacdbe70a02f4eec9e7dc085dfce615a3ddaf9d37 (patch)
tree15e5825bf98911b7913ecdcbc5ebdf26e2b746b7 /activesupport
parente4654aa93c3cf21949b72873072833b766ef7770 (diff)
parentd632535df60ad55cf415c3b0e4207e73c904afa7 (diff)
downloadrails-acdbe70a02f4eec9e7dc085dfce615a3ddaf9d37.tar.gz
rails-acdbe70a02f4eec9e7dc085dfce615a3ddaf9d37.tar.bz2
rails-acdbe70a02f4eec9e7dc085dfce615a3ddaf9d37.zip
Merge pull request #27973 from kenta-s/add-missing-test-for-time-blank
Add Time#blank? to blank_test
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/core_ext/object/blank_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/object/blank_test.rb b/activesupport/test/core_ext/object/blank_test.rb
index 1bedc76320..7fd3fed042 100644
--- a/activesupport/test/core_ext/object/blank_test.rb
+++ b/activesupport/test/core_ext/object/blank_test.rb
@@ -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" }