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

[ninefold|storage] Update an existing file

This commit is contained in:
Lincoln Stoll 2011-07-11 00:28:45 +10:00
parent ef44cd0b38
commit 86f8b2a20c
4 changed files with 44 additions and 3 deletions

View file

@ -0,0 +1,15 @@
if storage_providers.keys.include? :ninefold
for provider, config in storage_providers
Shindo.tests("Storage[:ninefold] | nested directories", [provider]) do
ninefold = Fog::Storage[:ninefold]
tests("update a file").succeeds do
dir = ninefold.directories.create(:key => 'updatefiletests')
f = dir.files.create(:key => 'lorem.txt', :body => lorem_file)
f.body = "xxxxxx"
f.save
end
end
end
end