summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-11-29 15:55:40 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-11-29 15:55:40 -0800
commit9d431140d6159e97b964b623cfb4370ba0b8203d (patch)
tree07978e3db8baf295176f5670e57ec9102b197fad
parent363fad726eb5d8b3214340df6b462900c0990758 (diff)
downloadpsych-9d431140d6159e97b964b623cfb4370ba0b8203d.zip
sync with ruby-core
-rw-r--r--test/psych/test_object_references.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/psych/test_object_references.rb b/test/psych/test_object_references.rb
index 77cc96e..2a659a3 100644
--- a/test/psych/test_object_references.rb
+++ b/test/psych/test_object_references.rb
@@ -28,7 +28,7 @@ module Psych
def assert_reference_trip obj
yml = Psych.dump([obj, obj])
- assert_match(/\*\d+/, yml)
+ assert_match(/\*-?\d+/, yml)
data = Psych.load yml
assert_equal data.first.object_id, data.last.object_id
end