ruby-changes:20027
From: naruse <ko1@a...>
Date: Tue, 14 Jun 2011 09:48:33 +0900 (JST)
Subject: [ruby-changes:20027] naruse:r32074 (trunk): Explictly specify syck.
naruse 2011-06-14 09:48:19 +0900 (Tue, 14 Jun 2011) New Revision: 32074 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32074 Log: Explictly specify syck. Modified files: trunk/test/syck/test_yamlstore.rb Index: test/syck/test_yamlstore.rb =================================================================== --- test/syck/test_yamlstore.rb (revision 32073) +++ test/syck/test_yamlstore.rb (revision 32074) @@ -1,14 +1,17 @@ require 'test/unit' +require 'syck' +require 'yaml/store' module Syck class YAMLStoreTest < Test::Unit::TestCase def setup - require 'yaml/store' + @engine, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'syck' @yamlstore_file = "yamlstore.tmp.#{Process.pid}" @yamlstore = YAML::Store.new(@yamlstore_file) end def teardown + YAML::ENGINE.yamler = @engine File.unlink(@yamlstore_file) rescue nil end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/