[macruby-changes] [3297] MacRuby/trunk/spec/frozen

source_changes at macosforge.org source_changes at macosforge.org
Mon Jan 18 20:36:41 PST 2010


Revision: 3297
          http://trac.macosforge.org/projects/ruby/changeset/3297
Author:   neeracher at apple.com
Date:     2010-01-18 20:36:38 -0800 (Mon, 18 Jan 2010)
Log Message:
-----------
Made dump_stream_tags test pass by fixing overdetermined test

Modified Paths:
--------------
    MacRuby/trunk/spec/frozen/library/yaml/dump_stream_spec.rb

Removed Paths:
-------------
    MacRuby/trunk/spec/frozen/tags/macruby/library/yaml/dump_stream_tags.txt

Modified: MacRuby/trunk/spec/frozen/library/yaml/dump_stream_spec.rb
===================================================================
--- MacRuby/trunk/spec/frozen/library/yaml/dump_stream_spec.rb	2010-01-19 04:30:19 UTC (rev 3296)
+++ MacRuby/trunk/spec/frozen/library/yaml/dump_stream_spec.rb	2010-01-19 04:36:38 UTC (rev 3297)
@@ -6,7 +6,11 @@
     YAML.dump_stream.should == ""
   end
 
+  # 
+  # We used to compare against []\n\n and {}\n\n, but this was overdetermining the format 
+  # just to match Syck
+  #
   it "returns a YAML stream containing the objects passed" do
-    YAML.dump_stream('foo', 20, [], {}).should == "--- foo\n--- 20\n--- []\n\n--- {}\n\n"
+    YAML.dump_stream('foo', 20, [], {}).should =~ /--- foo\n--- 20\n--- \[\]\n+--- \{\}\n+/
   end
-end
\ No newline at end of file
+end

Deleted: MacRuby/trunk/spec/frozen/tags/macruby/library/yaml/dump_stream_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/library/yaml/dump_stream_tags.txt	2010-01-19 04:30:19 UTC (rev 3296)
+++ MacRuby/trunk/spec/frozen/tags/macruby/library/yaml/dump_stream_tags.txt	2010-01-19 04:36:38 UTC (rev 3297)
@@ -1 +0,0 @@
-fails:YAML.dump_stream returns a YAML stream containing the objects passed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100118/3a42772f/attachment-0001.html>


More information about the macruby-changes mailing list