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

19 lines
360 B
Ruby
Raw Normal View History

2010-12-29 21:12:51 -05:00
for provider, config in dns_providers
params = {
:key => 'fog_files_tests',
:body => lorem_file
}.merge!(config[:files_params] || {})
if !Fog.mocking? || mocks_implemented
@directory = provider.directories.create(:key => 'fogfilestests')
collection_tests(@directory.files, params, config[:mocked])
@directory.destroy
end
end