Tighten validation around batch operations
This commit is contained in:
1 parent
687223feb4
commit
5804593f25
2 files changed
+33
-4
No files matched your search
@@ -186,6 +186,20 @@ EOF
|
||||
end
|
||||
end.to raise_error(Google::Apis::ClientError)
|
||||
end
|
||||
|
||||
it 'should prevent mixing services in batch' do
|
||||
expect do |b|
|
||||
service.batch do |service|
|
||||
command = service.send(:make_simple_command, :get, 'zoo/animals', {})
|
||||
service.send(:execute_or_queue_command, command, &b)
|
||||
|
||||
service2 = service.dup
|
||||
command2 = service.send(:make_simple_command, :get, 'zoo/animals', {})
|
||||
service2.send(:execute_or_queue_command, command2, &b)
|
||||
end
|
||||
end.to raise_error
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
context 'with batch uploads' do
|
||||
|
||||
Reference in new issue
Block a user