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:
parent
494035ce98
commit
058358d67d
2 changed files with 3 additions and 2 deletions
|
@ -43,6 +43,7 @@ module Fog
|
|||
create_disks
|
||||
create_config
|
||||
boot_linode
|
||||
self
|
||||
rescue Exception => ex
|
||||
destroy if id
|
||||
raise ex
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue