<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -13,7 +13,6 @@ module YamlWaml
                  when StringIO then orig_yamled.string
                  else return orig_yamled
                  end
-
     yamled_str.gsub!(/\\x(\w{2})/){[$1].pack(&quot;H2&quot;)}
     return yamled_str
   end</diff>
      <filename>lib/yaml_waml.rb</filename>
    </modified>
    <modified>
      <diff>@@ -51,7 +51,7 @@ describe YAML, &quot;.dump&quot; do
     actual = [[&quot;&#12354;&quot;, &quot;&#12356;&quot;], {&quot;&#12358;&quot; =&gt; [&quot;&#12360;&quot;]}, Struct.new(:name).new(&quot;&#12362;&quot;)]
     io = StringIO.new
     YAML.dump(actual, io)
-    io.string.should be_eql &lt;&lt;-EXPECTED
+    io.string.should == &lt;&lt;-EXPECTED
 ---#{BLANK}
 - - &quot;&#12354;&quot;
   - &quot;&#12356;&quot;
@@ -62,14 +62,25 @@ describe YAML, &quot;.dump&quot; do
     EXPECTED
   end
 
+
+  require 'fileutils'
+
+  TEST_FILEPATH = File.expand_path(&quot;to_yaml_io.txt&quot;, File.dirname(__FILE__))
+  before(:all) do
+    FileUtils.touch(TEST_FILEPATH)
+  end
+
+  after(:all) do
+    FileUtils.rm(TEST_FILEPATH)
+  end
+
   it &quot;should be IO-friendly&quot; do
     actual = [[&quot;&#12420;&quot;, &quot;&#12416;&quot;], {&quot;&#12427;&quot; =&gt; [&quot;&#12431;&quot;, &quot;&#12416;&quot;]}, &quot;&#12427;&quot;]
-    IO.popen(&quot;-&quot;, &quot;r+&quot;) do |io|
-      if io
-        YAML.dump(actual, io)
-      else
-        yamled_str = gets
-        yamled_str.should be_eql &lt;&lt;-EXPECTED
+    File.open(TEST_FILEPATH, 'w') do |f|
+        YAML.dump(actual, f)
+    end
+    yamled_str = File.read(TEST_FILEPATH)
+    yamled_str.should == &lt;&lt;-EXPECTED
 ---#{BLANK}
 - - &quot;&#12420;&quot;
   - &quot;&#12416;&quot;
@@ -78,7 +89,5 @@ describe YAML, &quot;.dump&quot; do
   - &quot;&#12416;&quot;
 - &quot;&#12427;&quot;
       EXPECTED
-      end
-    end
   end
 end</diff>
      <filename>spec/to_yaml_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fd3cd87ab3238b719966ef9f6025757e2e817005</id>
    </parent>
  </parents>
  <author>
    <name>KAKUTANI Shintaro</name>
    <email>shintaro@kakutani.com</email>
  </author>
  <url>http://github.com/kakutani/yaml_waml/commit/e8c362f23b346369aebc8bd2a4fa7bc3d6f248e6</url>
  <id>e8c362f23b346369aebc8bd2a4fa7bc3d6f248e6</id>
  <committed-date>2008-09-09T02:11:26-07:00</committed-date>
  <authored-date>2008-09-09T02:11:26-07:00</authored-date>
  <message>changed IO spec into File</message>
  <tree>f00b16acf3b7f2b7c295ac7a0d2e5d2130c562f6</tree>
  <committer>
    <name>KAKUTANI Shintaro</name>
    <email>shintaro@kakutani.com</email>
  </committer>
</commit>
