Sha256: e0296bdab2bd7f65b8a83270687fc0aa5e9112609ff3057817023e137d36ceb0

Contents?: true

Size: 598 Bytes

Versions: 16

Compression:

Stored size: 598 Bytes

Contents

for provider, config in storage_providers

  Shindo.tests("#{provider}::Storage | files", [provider.to_s.downcase]) do

    file_attributes = {
      :key => 'fog_files_tests',
      :body => lorem_file
    }.merge!(config[:file_attributes] || {})

    if !Fog.mocking? || config[:mocked]

      directory_attributes = {
        :key => 'fogfilestests'
      }.merge!(config[:directory_attributes] || {})

      @directory = provider.directories.create(directory_attributes)

      collection_tests(@directory.files, file_attributes, config[:mocked])

      @directory.destroy

    end

  end

end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
fog-0.8.1 tests/storage/models/files_tests.rb
fog-0.8.0 tests/storage/models/files_tests.rb
fog-0.7.2 tests/storage/models/files_tests.rb
fog-0.7.1 tests/storage/models/files_tests.rb
fog-0.7.0 tests/storage/models/files_tests.rb
fog-0.6.0 tests/storage/models/files_tests.rb
fog-0.5.3 tests/storage/models/files_tests.rb
fog-0.5.2 tests/storage/models/files_tests.rb
fog-0.5.1 tests/storage/models/files_tests.rb
fog-0.5.0 tests/storage/models/files_tests.rb
phpfog-fog-0.4.1.3 tests/storage/models/files_tests.rb
phpfog-fog-0.4.1.2 tests/storage/models/files_tests.rb
phpfog-fog-0.4.1.1 tests/storage/models/files_tests.rb
phpfog-fog-0.4.1 tests/storage/models/files_tests.rb
fog-0.4.1 tests/storage/models/files_tests.rb
fog-0.4.0 tests/storage/models/files_tests.rb