spec/spec_helper.rb in sequel-rails-1.0.0 vs spec/spec_helper.rb in sequel-rails-1.0.1
- old
+ new
@@ -51,9 +51,10 @@
# Ensure db migrated
begin
require 'sequel_rails/storage'
require 'sequel/extensions/migration'
+ ::SequelRails.setup(Rails.env)
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}"
warn 'Ensure test db exists before running specs.'