spec/integration/commands/delete_spec.rb in rom-sql-0.8.0 vs spec/integration/commands/delete_spec.rb in rom-sql-0.9.0

- old
+ new

@@ -59,50 +59,25 @@ }.to raise_error(ROM::SQL::DatabaseError, /totally wrong/) end end describe '#execute' do - context 'with postgres adapter' do - context 'with a single record' do - it 'materializes the result' do - result = container.command(:users).delete.by_name(%w(Jade)).execute - expect(result).to eq([ - { id: 3, name: 'Jade' } - ]) - end + context 'with a single record' do + it 'materializes the result' do + result = container.command(:users).delete.by_name(%w(Jade)).execute + expect(result).to eq([ + { id: 3, name: 'Jade' } + ]) end - - context 'with multiple records' do - it 'materializes the results' do - result = container.command(:users).delete.by_name(%w(Jade John)).execute - expect(result).to eq([ - { id: 3, name: 'Jade' }, - { id: 4, name: 'John' } - ]) - end - end end - context 'with other adapter', adapter: :sqlite do - let(:uri) { SQLITE_DB_URI } - - context 'with a single record' do - it 'materializes the result' do - result = container.command(:users).delete.by_name(%w(Jade)).execute - expect(result).to eq([ - { id: 3, name: 'Jade' } - ]) - end - end - - context 'with multiple records' do - it 'materializes the results' do - result = container.command(:users).delete.by_name(%w(Jade John)).execute - expect(result).to eq([ - { id: 3, name: 'Jade' }, - { id: 4, name: 'John' } - ]) - end + context 'with multiple records' do + it 'materializes the results' do + result = container.command(:users).delete.by_name(%w(Jade John)).execute + expect(result).to eq([ + { id: 3, name: 'Jade' }, + { id: 4, name: 'John' } + ]) end end end end end