spec/unit/migrator_spec.rb in rom-sql-0.8.0 vs spec/unit/migrator_spec.rb in rom-sql-0.9.0
- old
+ new
@@ -1,8 +1,9 @@
-RSpec.describe ROM::SQL::Migration::Migrator do
+RSpec.describe ROM::SQL::Migration::Migrator, :postgres, skip_tables: true do
+ include_context 'database setup'
+
subject(:migrator) { ROM::SQL::Migration::Migrator.new(conn, options) }
- let(:conn) { Sequel.connect(POSTGRES_DB_URI) }
let(:options) { { path: TMP_PATH.join('test/migrations') } }
describe '#create_file' do
it 'creates a migration file under configured path with specified version and name' do
file_path = migrator.create_file('create_users', 1)