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

Fixing misnaming of methods for mock classes in compute v2 digitalocean

This commit is contained in:
Joshua Gross 2015-09-23 15:29:58 -04:00
parent 3086f4651a
commit 5cc840c6fa
5 changed files with 11 additions and 8 deletions

View file

@ -26,7 +26,7 @@ module Fog
# noinspection RubyStringKeysInHashInspection
class Mock
def create_server(name, public_key)
def create_ssh_key(name, public_key)
response = Excon::Response.new
response.status = 202

View file

@ -18,9 +18,11 @@ module Fog
# noinspection RubyStringKeysInHashInspection
class Mock
def delete_server(_)
response(:status => 204)
response = Excon::Response.new
response.status = 204
response
end
end
end
end
end
end

View file

@ -18,9 +18,10 @@ module Fog
# noinspection RubyStringKeysInHashInspection
class Mock
def delete_ssh_key(_)
response(:status => 204)
end
response = Excon::Response.new
response.status = 204
response end
end
end
end
end
end

View file

@ -13,7 +13,7 @@ module Fog
# noinspection RubyStringKeysInHashInspection
class Mock
def list_images
def list_regions
response = Excon::Response.new
response.status = 200
response.body = {

View file

@ -25,7 +25,7 @@ module Fog
# noinspection RubyStringKeysInHashInspection
class Mock
def update_server(key_id, name)
def update_ssh_key(key_id, name)
response = Excon::Response.new
response.status = 200