Sha256: ad91c5d844d08fad1c62071bc53a0c3fcf75c3c354d3d38ff94fc3bc1c6b1b24
Contents?: true
Size: 931 Bytes
Versions: 30
Compression:
Stored size: 931 Bytes
Contents
Shindo.tests("Fog::Storage[:hp] | files", ['hp', 'storage']) do file_attributes = { :key => 'fog_files_tests', :body => lorem_file } directory_attributes = { :key => 'fogfilestests' } collection_tests(Fog::Storage[:hp].directories.create(directory_attributes).files, file_attributes, true) @directory = Fog::Storage[:hp].directories.create(directory_attributes) @file = @directory.files.create(file_attributes) tests('success') do tests("#get_url('#{@directory.key}')").succeeds do @directory.files.get_url(@directory.key) end tests("#get_cdn_url('#{@directory.key}')").succeeds do pending if Fog.mocking? @directory.files.get_cdn_url(@directory.key) end tests("#get_cdn_ssl_url('#{@directory.key}')").succeeds do pending if Fog.mocking? @directory.files.get_cdn_ssl_url(@directory.key) end end @file.destroy @directory.destroy end
Version data entries
30 entries across 30 versions & 4 rubygems