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

[digitalocean|compute] list_ssh_keys request mock fixes

Removing ssh_pub_key was making tests fail when mocking randomly.
This commit is contained in:
Sergio Rubio 2013-03-31 21:33:36 +02:00
parent 5e9034115b
commit 053f6d9b22

View file

@ -20,9 +20,7 @@ module Fog
response.status = 200 response.status = 200
response.body = { response.body = {
"status" => "OK", "status" => "OK",
# key listing does not return ssh_pub_key "ssh_keys" => self.data[:ssh_keys]
# https://www.digitalocean.com/api#ssh_keys
"ssh_keys" => self.data[:ssh_keys].map { |k| k.delete('ssh_pub_key'); k }
} }
response response
end end