mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
16 lines
628 B
Ruby
16 lines
628 B
Ruby
Shindo.tests('Fog::Compute[:opennebula] | groups collection', ['opennebula']) do
|
|
|
|
groups = Fog::Compute[:opennebula].groups
|
|
|
|
tests('The groups collection') do
|
|
test('should be a kind of Fog::Compute::OpenNebula::Groups') { groups.kind_of? Fog::Compute::OpenNebula::Groups }
|
|
tests('should be able to reload itself').succeeds { groups.reload }
|
|
tests('should be able to get a model by id') do
|
|
tests('by instance id').succeeds { groups.get groups.first.id }
|
|
end
|
|
tests('should be able to get a model by name') do
|
|
tests('by instance id').succeeds { groups.get_by_name "fogtest" }
|
|
end
|
|
end
|
|
|
|
end
|