spec/unit/migration_tasks_spec.rb in rom-sql-0.5.1 vs spec/unit/migration_tasks_spec.rb in rom-sql-0.5.2
- old
+ new
@@ -10,10 +10,10 @@
before do
ROM.setup(:sql, ['postgres://localhost/rom'])
ROM.finalize
end
- let(:migrator) { ROM.env.repositories[:default].migrator }
+ let(:migrator) { ROM.env.gateways[:default].migrator }
context 'db:reset' do
it 'calls proper commands' do
expect(migrator).to receive(:run).with(target: 0)
expect(migrator).to receive(:run)