From 1e1aadba8331c4f0ee607671e491b0eafc270531 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 30 Sep 2009 09:45:04 -0700 Subject: round trip empty strings --- test/visitors/test_yast_builder.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/visitors') diff --git a/test/visitors/test_yast_builder.rb b/test/visitors/test_yast_builder.rb index 67d54be..bcf0cd2 100644 --- a/test/visitors/test_yast_builder.rb +++ b/test/visitors/test_yast_builder.rb @@ -9,10 +9,8 @@ module Psych end def test_scalar - @v.accept 'foo' - - assert_equal 'foo', Psych.load(@v.tree.to_yaml) - assert_equal 'foo', Psych.load('foo'.to_yaml) + assert_round_trip 'foo' + assert_round_trip '' end def test_binary -- cgit v1.2.3