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/models/identity/role_tests.rb
2012-04-30 10:34:59 +08:00

14 lines
342 B
Ruby

Shindo.tests("Fog::Identity[:openstack] | role", ['openstack']) do
@instance = Fog::Identity[:openstack].roles.new({:name => 'Role Name', :user_id => 1, :role_id => 1})
tests('success') do
tests('#save').returns(true) do
@instance.save
end
tests('#destroy').returns(true) do
@instance.destroy
end
end
end