add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d7bf156afd
commit
05a2cd709f
@ -574,6 +574,10 @@ if defined? DBM
|
|||||||
FileUtils.remove_entry_secure @tmproot if File.directory?(@tmproot)
|
FileUtils.remove_entry_secure @tmproot if File.directory?(@tmproot)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_version
|
||||||
|
assert_instance_of(String, DBM::VERSION)
|
||||||
|
end
|
||||||
|
|
||||||
def test_reader_open_notexist
|
def test_reader_open_notexist
|
||||||
assert_raise(Errno::ENOENT) {
|
assert_raise(Errno::ENOENT) {
|
||||||
DBM.open("#{@tmproot}/a", 0666, DBM::READER)
|
DBM.open("#{@tmproot}/a", 0666, DBM::READER)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user