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-02-27 08:34:47 -06:00
parent 280a26ece6
commit eba093e38d

View file

@ -123,13 +123,13 @@ Shindo.tests('Fog::Rackspace::Storage | directory', ['rackspace']) do
returns('true') { dir.metadata[:list_test] } returns('true') { dir.metadata[:list_test] }
end end
tests("should reload metadata after calling reload").returns(42) do tests("should reload metadata after calling reload").returns("42") do
@service.put_container @instance.key, "X-Container-Meta-Answer" => 42 @service.put_container @instance.key, "X-Container-Meta-Answer" => 42
@instance.reload @instance.reload
@instance.metadata[:answer] @instance.metadata[:answer]
end end
tests("should reload metadata after calling reload").returns(42) do tests("should reload metadata after calling reload").returns("42") do
@service.put_container @instance.key, "X-Container-Meta-Answer" => 42 @service.put_container @instance.key, "X-Container-Meta-Answer" => 42
@instance.reload @instance.reload
@instance.metadata[:answer] @instance.metadata[:answer]