summaryrefslogtreecommitdiff
path: root/test/wsdl
diff options
context:
space:
mode:
Diffstat (limited to 'test/wsdl')
-rw-r--r--test/wsdl/datetime/test_datetime.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/wsdl/datetime/test_datetime.rb b/test/wsdl/datetime/test_datetime.rb
index a60d9b70a0..5ac3fdc5bc 100644
--- a/test/wsdl/datetime/test_datetime.rb
+++ b/test/wsdl/datetime/test_datetime.rb
@@ -58,8 +58,15 @@ class TestDatetime < Test::Unit::TestCase
end
def test_datetime
- d = DateTime.now
- assert_equal(d + 1, @client.now(d))
+ d1 = DateTime.now
+ d2 = @client.now(d1)
+ assert_equal(d2.year, d1.year)
+ assert_equal(d2.month, d1.month)
+ assert_equal(d2.day, d1.day + 1)
+ assert_equal(d2.hour, d1.hour)
+ assert_equal(d2.min, d1.min)
+ assert_equal(d2.sec, d1.sec)
+ assert_equal(d2.sec, d1.sec)
end
def test_time