mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/psych/test_yamldbm.rb: don't run test if the system
don't support yaml/dbm. * test/syck/test_yamldbm.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
82f1f640ec
commit
a30fd3b660
3 changed files with 25 additions and 10 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
Sun Oct 9 11:06:52 2011 Kazuki Tsujimoto <kazuki@callcc.net>
|
||||||
|
|
||||||
|
* test/psych/test_yamldbm.rb: don't run test if the system
|
||||||
|
don't support yaml/dbm.
|
||||||
|
|
||||||
|
* test/syck/test_yamldbm.rb: ditto.
|
||||||
|
|
||||||
Sat Oct 8 08:54:56 2011 Eric Hodel <drbrain@segment7.net>
|
Sat Oct 8 08:54:56 2011 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
* enum.c (group_by): Improve group_by description. Patch by b t.
|
* enum.c (group_by): Improve group_by description. Patch by b t.
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
# -*- coding: UTF-8 -*-
|
# -*- coding: UTF-8 -*-
|
||||||
require 'test/unit'
|
begin
|
||||||
require 'yaml/dbm'
|
require 'test/unit'
|
||||||
require 'tmpdir'
|
require 'yaml/dbm'
|
||||||
Psych::DBM = YAML::DBM unless defined?(Psych::DBM)
|
require 'tmpdir'
|
||||||
|
rescue LoadError
|
||||||
|
end
|
||||||
|
|
||||||
module Psych
|
module Psych
|
||||||
|
::Psych::DBM = ::YAML::DBM unless defined?(::Psych::DBM)
|
||||||
|
|
||||||
class YAMLDBMTest < Test::Unit::TestCase
|
class YAMLDBMTest < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
||||||
@engine, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'psych'
|
@engine, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'psych'
|
||||||
|
@ -187,4 +191,4 @@ module Psych
|
||||||
assert_equal([], @yamldbm.select {false})
|
assert_equal([], @yamldbm.select {false})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end if defined?(YAML::DBM)
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
# -*- coding: UTF-8 -*-
|
# -*- coding: UTF-8 -*-
|
||||||
require 'test/unit'
|
begin
|
||||||
require 'yaml/dbm'
|
require 'test/unit'
|
||||||
require 'tmpdir'
|
require 'yaml/dbm'
|
||||||
Syck::DBM = YAML::DBM unless defined?(Syck::DBM)
|
require 'tmpdir'
|
||||||
|
rescue LoadError
|
||||||
|
end
|
||||||
|
|
||||||
module Syck
|
module Syck
|
||||||
|
::Syck::DBM = ::YAML::DBM unless defined?(::Syck::DBM)
|
||||||
|
|
||||||
class YAMLDBMTest < Test::Unit::TestCase
|
class YAMLDBMTest < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
||||||
@engine, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'syck'
|
@engine, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'syck'
|
||||||
|
@ -187,4 +191,4 @@ module Syck
|
||||||
assert_equal([], @yamldbm.select {false})
|
assert_equal([], @yamldbm.select {false})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end if defined?(YAML::DBM)
|
||||||
|
|
Loading…
Add table
Reference in a new issue