spec/unit/repository_spec.rb in rom-sql-0.4.0.beta1 vs spec/unit/repository_spec.rb in rom-sql-0.4.0.beta2

- old
+ new

@@ -22,9 +22,11 @@ expect(repository.dataset?(:not_here)).to be(false) end end describe '#disconnect' do + let(:repository) { ROM::SQL::Repository.new(uri) } + it 'disconnects via sequel connection' do # FIXME: no idea how to test it in a different way expect(repository.connection).to receive(:disconnect) repository.disconnect end