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/image_search_tests.rb
2014-10-13 16:25:14 +01:00

11 lines
478 B
Ruby

Shindo.tests("Fog::Compute[:fogdocker] | image_search request", 'fogdocker') do
compute = Fog::Compute[:fogdocker]
tests("Search images") do
response = compute.image_search('term' => 'test')
test("should be a kind of Array") { response.kind_of? Array}
test("Array elements should be a kind of Hash") { response.first.kind_of? Hash}
test("response elemetns should have a name") { !response.first['name'].nil? && !response.first['name'].empty? }
end
end