Sha256: 9d1a3718a6636f9aee16a67344f8a2d88fd71feee482a067fd21f0ea990b2df1
Contents?: true
Size: 693 Bytes
Versions: 21
Compression:
Stored size: 693 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe Sequel do it "set_db method finds sets db on all Sequel models" do db = Sequel.fos('fos') Sequel.set_db db Trip.db.should == db end it "converts fos_id to key that can be used to query model" do Sequel.fos_id_to_lookup_key("MERE-0-8-40443-1259").should == ['MERE',0,8,40443,1259] end describe "has method 'fos' that" do before :each do @db = Sequel.fos('fos') end it "instantiates a fos/pervasive db from an odbc name" do @db.should_not be nil end it "actually works to see a fos table" do TripLeg.db=@db TripLeg.first.should_not be nil end end end
Version data entries
21 entries across 21 versions & 1 rubygems