spec/sniff_spec.rb in sniff-1.1.0 vs spec/sniff_spec.rb in sniff-1.1.1
- old
+ new
@@ -4,11 +4,11 @@
require 'earth/locality/petroleum_administration_for_defense_district'
describe Sniff do
let(:dirigible_path) { File.expand_path '../fixtures/dirigible', __FILE__ }
let(:sniff) do
- sniff = Sniff.new(dirigible_path, :fixtures_path => dirigible_path + '/lib/test_support/db/fixtures', :project => 'sniff')
+ sniff = Sniff.new(dirigible_path, :project => 'sniff')
sniff.connect
sniff
end
before :all do
@@ -22,10 +22,9 @@
Sniff.stub!(:root).and_return File.join('/path','to','my','gems','sniff')
Sniff.path('lib','sniff','stuff.rb').split(/[\/\\]/).
should == ['', 'path','to','my','gems','sniff','lib','sniff','stuff.rb']
end
end
-
describe '#migrate!' do
it 'loads a schema for the emitter record' do
sniff.migrate!
require File.join(dirigible_path, 'features', 'support', 'dirigible_record')
DirigibleRecord.table_exists?.should be_true