1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/openstack/volume_tests.rb
Sergio Rubio d903af4562 [openstack|volume] Added missing service declaration
- Fixes regresion probably caused by eb0545b
- Added minimal test to catch the issue
- Fixes #1605
2013-02-27 16:58:03 +01:00

15 lines
513 B
Ruby

Shindo.tests('Fog::Volume[:openstack]', ['openstack', 'volume']) do
volume = Fog::Volume[:openstack]
tests("Volumes collection") do
%w{ volumes }.each do |collection|
test("it should respond to #{collection}") { volume.respond_to? collection }
test("it should respond to #{collection}.all") { eval("volume.#{collection}").respond_to? 'all' }
# not implemented
#test("it should respond to #{collection}.get") { eval("volume.#{collection}").respond_to? 'get' }
end
end
end