Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

sync with ruby trunk

  • Loading branch information...
commit 2e7bdb3ea359779c98b7ed1ca77491d317070b88 1 parent 0dbe055
@tenderlove authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 test/psych/test_alias_and_anchor.rb
View
10 test/psych/test_alias_and_anchor.rb
@@ -24,8 +24,8 @@ def test_mri_compatibility
def test_mri_compatibility_object_with_ivars
yaml = <<EOYAML
----
-- &id001 !ruby/object:ObjectWithInstanceVariables
+---
+- &id001 !ruby/object:ObjectWithInstanceVariables
var1: test1
var2: test2
- *id001
@@ -33,7 +33,7 @@ def test_mri_compatibility_object_with_ivars
EOYAML
result = Psych.load yaml
- result.each do |el|
+ result.each do |el|
assert_same(result[0], el)
assert_equal('test1', el.var1)
assert_equal('test2', el.var2)
@@ -42,8 +42,8 @@ def test_mri_compatibility_object_with_ivars
def test_mri_compatibility_substring_with_ivars
yaml = <<EOYAML
----
-- &id001 !str:SubStringWithInstanceVariables
+---
+- &id001 !str:SubStringWithInstanceVariables
str: test
"@var1": test
- *id001
Please sign in to comment.
Something went wrong with that request. Please try again.