1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/opennebula/models/compute/groups_tests.rb
2014-06-16 08:32:35 +02:00

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