spec/unit/migration_tasks_spec.rb in rom-sql-0.7.0 vs spec/unit/migration_tasks_spec.rb in rom-sql-0.8.0

- old
+ new

@@ -5,15 +5,15 @@ #noop end end describe 'MigrationTasks' do - let(:configuration) { ROM::Configuration.new(:sql, DB_URI) } - let!(:container) { ROM.container(configuration) } + let(:conf) { ROM::Configuration.new(:sql, POSTGRES_DB_URI) } + let!(:container) { ROM.container(conf) } let(:migrator) { container.gateways[:default].migrator } before do - ROM::SQL::RakeSupport.stub(:env) { configuration } + allow(ROM::SQL::RakeSupport).to receive(:env) { conf } end context 'db:reset' do it 'calls proper commands' do expect(migrator).to receive(:run).with(target: 0)