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:
parent
ef44cd0b38
commit
86f8b2a20c
4 changed files with 44 additions and 3 deletions
15
tests/storage/models/ninefold/file_update_tests.rb
Normal file
15
tests/storage/models/ninefold/file_update_tests.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue