aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/time_with_zone_test.rb
diff options
context:
space:
mode:
authorkenta-s <knt01222@gmail.com>2017-02-06 22:39:03 +0900
committerkenta-s <knt01222@gmail.com>2017-02-06 23:27:50 +0900
commit9140720dcfee74845993e7d7fd2c38855e2ce1e6 (patch)
treeed3c45dc7883ec7d4bed2ea1f01a5de62a49600c /activesupport/test/core_ext/time_with_zone_test.rb
parent2bbea8b0996a45f9bdfafe3b63f123cca4614e10 (diff)
downloadrails-9140720dcfee74845993e7d7fd2c38855e2ce1e6.tar.gz
rails-9140720dcfee74845993e7d7fd2c38855e2ce1e6.tar.bz2
rails-9140720dcfee74845993e7d7fd2c38855e2ce1e6.zip
Add tests for `blank?`
Diffstat (limited to 'activesupport/test/core_ext/time_with_zone_test.rb')
-rw-r--r--activesupport/test/core_ext/time_with_zone_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/time_with_zone_test.rb b/activesupport/test/core_ext/time_with_zone_test.rb
index 629666947f..ab5ec98642 100644
--- a/activesupport/test/core_ext/time_with_zone_test.rb
+++ b/activesupport/test/core_ext/time_with_zone_test.rb
@@ -455,6 +455,10 @@ class TimeWithZoneTest < ActiveSupport::TestCase
assert_equal false, ActiveSupport::TimeWithZone.new(DateTime.civil(2000), @time_zone).acts_like?(:date)
end
+ def test_blank?
+ assert_not @twz.blank?
+ end
+
def test_is_a
assert_kind_of Time, @twz
assert_kind_of Time, @twz