spec/unit/migration_tasks_spec.rb in rom-sql-0.8.0 vs spec/unit/migration_tasks_spec.rb in rom-sql-0.9.0
- old
+ new
@@ -4,12 +4,12 @@
task :setup do
#noop
end
end
-describe 'MigrationTasks' do
- let(:conf) { ROM::Configuration.new(:sql, POSTGRES_DB_URI) }
- let!(:container) { ROM.container(conf) }
+RSpec.describe 'MigrationTasks', :postgres, skip_tables: true do
+ include_context 'database setup'
+
let(:migrator) { container.gateways[:default].migrator }
before do
allow(ROM::SQL::RakeSupport).to receive(:env) { conf }
end