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

Version Path
fossil-0.5.50 spec/sequel/core_patch_spec.rb
fossil-0.5.49 spec/sequel/core_patch_spec.rb
fossil-0.5.48 spec/sequel/core_patch_spec.rb
fossil-0.5.47 spec/sequel/core_patch_spec.rb
fossil-0.5.46 spec/sequel/core_patch_spec.rb
fossil-0.5.45 spec/sequel/core_patch_spec.rb
fossil-0.5.44 spec/sequel/core_patch_spec.rb
fossil-0.5.43 spec/sequel/core_patch_spec.rb
fossil-0.5.42 spec/sequel/core_patch_spec.rb
fossil-0.5.41 spec/sequel/core_patch_spec.rb
fossil-0.5.40 spec/sequel/core_patch_spec.rb
fossil-0.5.39 spec/sequel/core_patch_spec.rb
fossil-0.5.38 spec/sequel/core_patch_spec.rb
fossil-0.5.37 spec/sequel/core_patch_spec.rb
fossil-0.5.36 spec/sequel/core_patch_spec.rb
fossil-0.5.35 spec/sequel/core_patch_spec.rb
fossil-0.5.34 spec/sequel/core_patch_spec.rb
fossil-0.5.33 spec/sequel/core_patch_spec.rb
fossil-0.5.32 spec/sequel/core_patch_spec.rb
fossil-0.5.31 spec/sequel/core_patch_spec.rb