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

17 lines
564 B
Ruby
Raw Normal View History

2014-02-15 18:06:49 -05:00
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']})
2014-02-15 18:06:49 -05:00
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