require 'spec_helper.rb' require 'plaindb.rb' if false describe "PlainDB Table" do it "should create a db-table in data/plaindb/.." do tdef=PlaindbApp::TableDefinition.new tdef.add(PlaindbApp::Column::int("id")) tdef.add(PlaindbApp::Column::string("name")) db=PlaindbApp::DB.new("spec") table=db.getTable("test",tdef) row=PlaindbApp::Row.new(10,"bla") row3=PlaindbApp::Row.new(120,"bsdfdfdla") table.store(row,0) table.store(row3,1) row2=table.load(0) pp row2 row2.should == row table.load(1).should == row3 table.load(1).should_not == row pp table.size end it "should be possible to reopen a table" do end private def getTableDef end end end