summaryrefslogtreecommitdiff
path: root/test/psych/test_date_time.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/psych/test_date_time.rb')
-rw-r--r--test/psych/test_date_time.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/psych/test_date_time.rb b/test/psych/test_date_time.rb
index df66d142f6..9a8e37bc67 100644
--- a/test/psych/test_date_time.rb
+++ b/test/psych/test_date_time.rb
@@ -13,5 +13,13 @@ module Psych
dt = DateTime.now
assert_cycle dt
end
+
+ def test_alias_with_time
+ t = Time.now
+ h = {:a => t, :b => t}
+ yaml = Psych.dump h
+ assert_match('&', yaml)
+ assert_match('*', yaml)
+ end
end
end