Use Syck module after it is defined.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2012-06-29 13:12:36 +00:00
parent 13bc74fa74
commit 22113b1bab

View file

@ -2,9 +2,9 @@ require 'test/unit'
require 'yaml/store'
require 'tmpdir'
Syck::Store = YAML::Store unless defined?(Syck::Store)
module Syck
Store = YAML::Store unless defined?(Store)
class YAMLStoreTest < Test::Unit::TestCase
def setup
@engine, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'syck'