spec/unit/migrator_spec.rb in rom-sql-0.7.0 vs spec/unit/migrator_spec.rb in rom-sql-0.8.0
- old
+ new
@@ -1,10 +1,8 @@
-require 'spec_helper'
-
-describe ROM::SQL::Migration::Migrator do
+RSpec.describe ROM::SQL::Migration::Migrator do
subject(:migrator) { ROM::SQL::Migration::Migrator.new(conn, options) }
- let(:conn) { Sequel.connect(DB_URI) }
+ 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)