Sha256: 8958f00bdebb1d51488ea071caecfbdb69d437733fa0e2d67b25ef0db2ab8137

Contents?: true

Size: 626 Bytes

Versions: 32

Compression:

Stored size: 626 Bytes

Contents

require 'spec_helper'
require 'fileutils'

describe Sniff::Database do
  describe '#connect' do
    before :each do
      @db_path = File.join(File.dirname(__FILE__), '..', '..', '..')
    end
    it 'should load the air domain' do
      Sniff.init(@db_path, :earth => :air, :apply_schemas => true)
      Airport.count.should == 0 # we don't have fixtures for this here
      ZipCode.count.should > 0
      expect { AutomobileFuelType }.should raise_error
    end
    it 'should load data for all domains' do
      Sniff.init(@db_path, :earth => :all, :apply_schemas => true)
      ZipCode.count.should > 0
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
sniff-0.1.17 spec/lib/sniff/database_spec.rb
sniff-0.1.16 spec/lib/sniff/database_spec.rb
sniff-0.1.15 spec/lib/sniff/database_spec.rb
sniff-0.1.14 spec/lib/sniff/database_spec.rb
sniff-0.1.13 spec/lib/sniff/database_spec.rb
sniff-0.1.12 spec/lib/sniff/database_spec.rb
sniff-0.1.10 spec/lib/sniff/database_spec.rb
sniff-0.1.9 spec/lib/sniff/database_spec.rb
sniff-0.1.8 spec/lib/sniff/database_spec.rb
sniff-0.1.7 spec/lib/sniff/database_spec.rb
sniff-0.1.6 spec/lib/sniff/database_spec.rb
sniff-0.1.5 spec/lib/sniff/database_spec.rb
sniff-0.1.4 spec/lib/sniff/database_spec.rb
sniff-0.1.3 spec/lib/sniff/database_spec.rb
sniff-0.1.2 spec/lib/sniff/database_spec.rb
sniff-0.1.1 spec/lib/sniff/database_spec.rb
sniff-0.1.0 spec/lib/sniff/database_spec.rb
sniff-0.0.19 spec/lib/sniff/database_spec.rb
sniff-0.0.18 spec/lib/sniff/database_spec.rb
sniff-0.0.17 spec/lib/sniff/database_spec.rb