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/models/compute/servers_tests.rb

15 lines
551 B
Ruby
Raw Normal View History

2014-02-15 18:06:49 -05:00
Shindo.tests('Fog::Compute[:fogdocker] | servers collection', ['fogdocker']) do
servers = Fog::Compute[:fogdocker].servers
tests('The servers collection') do
test('should not be empty') { not servers.empty? }
test('should be a kind of Fog::Compute::Fogdocker::Servers') { servers.kind_of? Fog::Compute::Fogdocker::Servers }
tests('should be able to reload itself').succeeds { servers.reload }
tests('should be able to get a model') do
tests('by instance uuid').succeeds { servers.get(servers.first.id) }
end
end
end