aboutsummaryrefslogtreecommitdiffstats
path: root/test/psych/test_yamldbm.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-03 15:54:16 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-03 15:54:16 +0000
commita3ace91f3e233a3f7b9db27e20d4496a9e0cfd24 (patch)
treee2ed477209286803a345a59b68f210ff0b368560 /test/psych/test_yamldbm.rb
parentdae4acbedd77ea7eb19127a43c6f66079fdbd0df (diff)
downloadruby-a3ace91f3e233a3f7b9db27e20d4496a9e0cfd24.tar.gz
Don't define tests if there is no psych.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/psych/test_yamldbm.rb')
-rw-r--r--test/psych/test_yamldbm.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/psych/test_yamldbm.rb b/test/psych/test_yamldbm.rb
index 5fd2d77ed6..1b5d4447b4 100644
--- a/test/psych/test_yamldbm.rb
+++ b/test/psych/test_yamldbm.rb
@@ -1,6 +1,7 @@
# -*- coding: UTF-8 -*-
begin
require 'test/unit'
+ require 'psych'
require 'yaml/dbm'
require 'tmpdir'
rescue LoadError
@@ -191,4 +192,4 @@ module Psych
assert_equal([], @yamldbm.select {false})
end
end
-end if defined?(YAML::DBM)
+end if defined?(YAML::DBM) && defined?(Psych)