1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/fogdocker/requests/compute/container_delete_tests.rb

16 lines
564 B
Ruby

Shindo.tests('Fog::Compute[:fogdocker] | container_delete request', ['fogdocker']) do
compute = Fog::Compute[:fogdocker]
container = compute.servers.create({'Image' => 'mattdm/fedora:f19',
'Cmd' => ['/bin/bash']})
tests('The response should') do
response = compute.container_delete(:id => container.id)
test('be a success') { response ? true: false }
end
tests('The expected options') do
raises(ArgumentError, 'raises ArgumentError when id option is missing') { compute.container_delete }
end
end