summaryrefslogtreecommitdiff
path: root/test/psych/test_yamlstore.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/psych/test_yamlstore.rb')
-rw-r--r--test/psych/test_yamlstore.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/psych/test_yamlstore.rb b/test/psych/test_yamlstore.rb
index d607013ada..c31b33f5ed 100644
--- a/test/psych/test_yamlstore.rb
+++ b/test/psych/test_yamlstore.rb
@@ -1,10 +1,11 @@
require 'test/unit'
+require 'psych'
require 'yaml/store'
require 'tmpdir'
-Psych::Store = YAML::Store unless defined?(Psych::Store)
-
module Psych
+ Psych::Store = YAML::Store unless defined?(Psych::Store)
+
class YAMLStoreTest < Test::Unit::TestCase
def setup
@engine, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'psych'
@@ -84,4 +85,4 @@ module Psych
end
end
end
-end
+end if defined?(Psych)