aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorkenta-s <knt01222@gmail.com>2017-02-12 11:02:50 +0900
committerkenta-s <knt01222@gmail.com>2017-02-12 11:02:50 +0900
commitd632535df60ad55cf415c3b0e4207e73c904afa7 (patch)
tree11e22b93357e3699b602699540b8bcfba6cc88f4 /activesupport/test
parent4fed08fa787a316fa51f14baca9eae11913f5050 (diff)
downloadrails-d632535df60ad55cf415c3b0e4207e73c904afa7.tar.gz
rails-d632535df60ad55cf415c3b0e4207e73c904afa7.tar.bz2
rails-d632535df60ad55cf415c3b0e4207e73c904afa7.zip
Add Time#blank? to blank_test
Diffstat (limited to 'activesupport/test')
-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" }