summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-03 14:34:03 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-03 14:34:03 +0000
commit6add2a6a77f9bc447b6e54ecd24c29b525a0d3fa (patch)
tree3c90a6f52851481bc0cddcdf36bad3c1da55275f
parentc61dd961dd01e6496fb8cb90c0af67ae0fdcebca (diff)
* test/wsdl/document/test_rpc.rb: compare formatted time string of
Time objects instead of comparing Time objects itself to avoid unintended conflict of usec part. [ruby-dev:26220] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--test/wsdl/document/test_rpc.rb7
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index f851de074f..ce47a93cd1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sun Jul 3 23:26:30 2005 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>
+
+ * test/wsdl/document/test_rpc.rb: compare formatted time string of
+ Time objects instead of comparing Time objects itself to avoid
+ unintended conflict of usec part. [ruby-dev:26220]
+
Sat Jul 2 22:41:04 2005 Tanaka Akira <akr@m17n.org>
* ext/socket/socket.c (unix_send_io, unix_recv_io): support x86-64 and
diff --git a/test/wsdl/document/test_rpc.rb b/test/wsdl/document/test_rpc.rb
index 5dac10d580..56cd0677ad 100644
--- a/test/wsdl/document/test_rpc.rb
+++ b/test/wsdl/document/test_rpc.rb
@@ -107,10 +107,13 @@ class TestRPC < Test::Unit::TestCase
# struct#m_datetime in a response is a DateTime even though
# struct#m_datetime in a request is a Time.
+ timeformat = "%Y-%m-%dT%H:%M:%S"
assert_equal("mystring2", ret.struct1.m_string)
- assert_equal(now2, date2time(ret.struct1.m_datetime))
+ assert_equal(now2.strftime(timeformat),
+ date2time(ret.struct1.m_datetime).strftime(timeformat))
assert_equal("mystring1", ret.struct_2.m_string)
- assert_equal(now1, date2time(ret.struct_2.m_datetime))
+ assert_equal(now1.strftime(timeformat),
+ date2time(ret.struct_2.m_datetime).strftime(timeformat))
assert_equal("attr_string", ret.xmlattr_attr_string)
assert_equal(5, ret.xmlattr_attr_int)
end