mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
16 lines
564 B
Ruby
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
|