spec/integration/commands/delete_spec.rb in rom-sql-1.3.5 vs spec/integration/commands/delete_spec.rb in rom-sql-2.0.0.beta1
- old
+ new
@@ -61,19 +61,19 @@
end
describe '#execute' do
context 'with a single record' do
it 'materializes the result' do
- result = container.command(:users).delete.by_name(%w(Jade)).execute
+ result = container.commands[: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
+ result = container.commands[:users].delete.by_name(%w(Jade John)).execute
expect(result).to eq([
{ id: 3, name: 'Jade' },
{ id: 4, name: 'John' }
])
end