1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[rackspace|databases| Add service tests.

This commit is contained in:
Brad Gignac 2012-06-22 12:37:20 -04:00 committed by Brad Gignac
parent 5280d13a71
commit bd5789e23f

View file

@ -0,0 +1,26 @@
Shindo.tests('Fog::Rackspace::Databases', ['rackspace']) do |variable|
pending if Fog.mocking?
@service = Fog::Rackspace::Databases.new
tests('#flavors').succeeds do
data = @service.flavors
returns(true) { data.is_a? Array }
end
tests('#instances').succeeds do
data = @service.instances
returns(true) { data.is_a? Array }
end
tests('#databases').succeeds do
data = @service.databases
returns(true) { data.is_a? Array }
end
tests('#users').succeeds do
data = @service.users
returns(true) { data.is_a? Array }
end
end