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