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

fixing broken tests

This commit is contained in:
Kyle Rames 2013-01-08 10:32:24 -06:00
parent f83f744470
commit 9d72ff3f35
2 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ module Fog
response = Excon::Response.new
response.status = 202
response.body = {"meta" => {"environment" => "test"}}
response.body = {"meta" => {key => value}}
response
end
end

View file

@ -36,7 +36,7 @@ Shindo.tests('Fog::Compute::RackspaceV2 | metadata_tests', ['rackspace']) do
tests('get_metadata_item').returns("meta" => {"environment" => "dev"}) do
@service.get_metadata_item("servers", @server_id, "environment").body
end
tests('set_metadata_item').returns("meta" => {"environment", "test"}) do
tests('set_metadata_item').returns("meta" => {"environment" => "test"}) do
@service.set_metadata_item("servers", @server_id, "environment", "test").body
end
tests('delete_metadata_item').succeeds do
@ -62,7 +62,7 @@ Shindo.tests('Fog::Compute::RackspaceV2 | metadata_tests', ['rackspace']) do
tests('get_metadata_item').returns("meta" => {"environment" => "dev"}) do
@service.get_metadata_item("images", @image_id, "environment").body
end
tests('set_metadata_item').returns("meta" => {"environment", "test"}) do
tests('set_metadata_item').returns("meta" => {"environment" => "test"}) do
@service.set_metadata_item("images", @image_id, "environment", "test").body
end
tests('delete_metadata_item').succeeds do