spec/spec_helper.rb in sequel-rails-0.9.12 vs spec/spec_helper.rb in sequel-rails-0.9.13
- old
+ new
@@ -45,17 +45,12 @@
c.syntax = :expect
end
end
end
-# Ensure db exists and clean state
+# Ensure db migrated
begin
require 'sequel_rails/storage'
- Ammeter::OutputCapturer.capture_stdout do
- SequelRails::Storage.adapter_for(:test).drop
- SequelRails::Storage.adapter_for(:test).create
- end
-
require 'sequel/extensions/migration'
load "#{Rails.root}/db/schema.rb.init"
Sequel::Migration.descendants.first.apply Sequel::Model.db, :up
rescue Sequel::DatabaseConnectionError => e
warn "Database connection error: #{e.message}"