summaryrefslogtreecommitdiff
path: root/test/yaml/test_yaml.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-11-17 21:16:03 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2009-11-17 21:16:03 -0800
commit44bfff0204555e6a9d8bd764d9ee68bb47e0bffd (patch)
tree725e07c29ec37e79eab643f3d9df254cb1bab9c3 /test/yaml/test_yaml.rb
parent83ff66422fd23f883a90a65b25644267a27e25bf (diff)
downloadpsych-44bfff0204555e6a9d8bd764d9ee68bb47e0bffd.zip
making more tests pass!
Diffstat (limited to 'test/yaml/test_yaml.rb')
-rw-r--r--test/yaml/test_yaml.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/yaml/test_yaml.rb b/test/yaml/test_yaml.rb
index b40279f..15b8ca3 100644
--- a/test/yaml/test_yaml.rb
+++ b/test/yaml/test_yaml.rb
@@ -797,16 +797,17 @@ EOY
YAML.add_domain_type( "clarkevans.com,2002", 'graph/circle', &one_shape_proc )
YAML.add_domain_type( "clarkevans.com,2002", 'graph/line', &one_shape_proc )
YAML.add_domain_type( "clarkevans.com,2002", 'graph/text', &one_shape_proc )
+ # MODIFIED to remove invalid YAML
assert_parse_only(
[[{"radius"=>7, "center"=>{"x"=>73, "y"=>129}, "TYPE"=>"Shape: graph/circle"}, {"finish"=>{"x"=>89, "y"=>102}, "TYPE"=>"Shape: graph/line", "start"=>{"x"=>73, "y"=>129}}, {"TYPE"=>"Shape: graph/text", "value"=>"Pretty vector drawing.", "start"=>{"x"=>73, "y"=>129}, "color"=>16772795}, "Shape Container"]], <<EOY
-- !clarkevans.com,2002/graph/^shape
- - !^circle
+- !clarkevans.com,2002/graph/shape
+ - !/graph/circle
center: &ORIGIN {x: 73, y: 129}
radius: 7
- - !^line # !clarkevans.com,2002/graph/line
+ - !/graph/line # !clarkevans.com,2002/graph/line
start: *ORIGIN
finish: { x: 89, y: 102 }
- - !^text
+ - !/graph/text
start: *ORIGIN
color: 0xFFEEBB
value: Pretty vector drawing.