From bdf12fec365151fb049f7875aa82f2d207f0d8a0 Mon Sep 17 00:00:00 2001 From: Markus Roberts Date: Thu, 30 Sep 2010 17:21:56 -0700 Subject: Fix for #4896 -- stray newline left over from removed diagnostic A newline that was part of a diagnostic was left in, and this caused problems with the serialization of strings in "preserve newlines" mode. --- spec/unit/util/zaml_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 spec/unit/util/zaml_spec.rb (limited to 'spec') diff --git a/spec/unit/util/zaml_spec.rb b/spec/unit/util/zaml_spec.rb old mode 100644 new mode 100755 index 4de57e6d3..f2bcefe01 --- a/spec/unit/util/zaml_spec.rb +++ b/spec/unit/util/zaml_spec.rb @@ -11,7 +11,8 @@ describe "Pure ruby yaml implementation" do 'test' => "--- test", [] => "--- []", :symbol => "--- !ruby/sym symbol", - {:a => "A"} => "--- \n !ruby/sym a: A" + {:a => "A"} => "--- \n !ruby/sym a: A", + {:a => "x\ny"} => "--- \n !ruby/sym a: |-\n x\n y" }.each { |o,y| it "should convert the #{o.class} #{o.inspect} to yaml" do o.to_yaml.should == y -- cgit