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

13 lines
358 B
Ruby

def files_tests(connection, params = {}, mocks_implemented = true)
params = {:key => 'fog_files_tests', :body => lorem_file}.merge!(params)
if !Fog.mocking? || mocks_implemented
@directory = connection.directories.create(:key => 'fogfilestests')
collection_tests(@directory.files, params, mocks_implemented)
@directory.destroy
end
end