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

code cleanup, tests passing

This commit is contained in:
nightshade427 2011-03-18 12:53:57 -04:00 committed by Nicholas Ricketts
parent 494035ce98
commit 058358d67d
2 changed files with 3 additions and 2 deletions

View file

@ -43,6 +43,7 @@ module Fog
create_disks
create_config
boot_linode
self
rescue Exception => ex
destroy if id
raise ex

View file

@ -72,12 +72,12 @@ Shindo.tests('Linode::Compute | linode requests', ['linode']) do
tests('#linode_reboot(0)').raises(Fog::Linode::Compute::NotFound) do
pending if Fog.mocking?
Linode[:compute].linode_reboot(0)
Linode[:compute].linode_reboot(1)
end
tests('#linode_delete(0)').raises(Fog::Linode::Compute::NotFound) do
pending if Fog.mocking?
Linode[:compute].linode_delete(0)
Linode[:compute].linode_delete(1)
end
end