summaryrefslogtreecommitdiff
path: root/test/date
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-26 16:05:49 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-26 16:05:49 +0000
commit184e9e9d885a7d83ac0797c466647462008a6f7d (patch)
treee66104eb929c64ca6467447b049d261671734c51 /test/date
parent9fe4a35e67e46b84049e6c3951f4720d550322cf (diff)
use skip
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/date')
-rw-r--r--test/date/test_date_strftime.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/date/test_date_strftime.rb b/test/date/test_date_strftime.rb
index c8528d0e91..c56ad6fe5a 100644
--- a/test/date/test_date_strftime.rb
+++ b/test/date/test_date_strftime.rb
@@ -124,9 +124,7 @@ class TestDateStrftime < Test::Unit::TestCase
def test_strftime__3_2
s = Time.now.strftime('%G')
- if s.empty? || s == '%G'
- return
- end
+ skip if s.empty? || s == '%G'
(Date.new(1970,1,1)..Date.new(2037,12,31)).each do |d|
t = Time.utc(d.year,d.mon,d.mday)
assert_equal(t.strftime('%G'), d.strftime('%G'))