Basic storage and retrievals for strings working. Don't try it with anything but strings quite yet.

FossilOrigin-Name: 149679434867913e344a567542c3b6918d739c493c1c67c33a9ce18b63873ed4
This commit is contained in:
Mahlon E. Smith 2020-12-01 03:32:26 +00:00
parent 37b8091690
commit 1b3aa55004
2 changed files with 150 additions and 19 deletions

View file

@ -9,5 +9,13 @@ RSpec.describe( MDBX::Database ) do
expect{ described_class.new }.
to raise_exception( NoMethodError, /private/ )
end
it "knows the db handle open/close state" do
db = described_class.open( TEST_DATABASE.to_s )
expect( db.closed? ).to be_falsey
db.close
expect( db.closed? ).to be_truthy
end
end