Sha256: c8e7ff396ca7d0558acf101f290f1a59cc4a0514b4fffc912543380f8d37e3e3

Contents?: true

Size: 612 Bytes

Versions: 118

Compression:

Stored size: 612 Bytes

Contents

for provider, config in storage_providers

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

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

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

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

      @directory = Fog::Storage[provider].directories.create(directory_attributes)

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

      @directory.destroy

    end

  end

end

Version data entries

118 entries across 116 versions & 15 rubygems

Version Path
fog-1.11.1 tests/storage/models/files_tests.rb
fog-1.11.0 tests/storage/models/files_tests.rb
fog-nirvanix-1.8.1 tests/storage/models/files_tests.rb
fog-1.10.1 tests/storage/models/files_tests.rb
fog-parser-fix-1.6.1 tests/storage/models/files_tests.rb
fog-test-again-1.6.0 tests/storage/models/files_tests.rb
fog-test-me-1.10.0 tests/storage/models/files_tests.rb
fog-parser-fix-1.6.0 tests/storage/models/files_tests.rb
fog-1.10.0 tests/storage/models/files_tests.rb
fog-1.9.0 tests/storage/models/files_tests.rb
fog-maestrodev-1.8.0.20130114204828 tests/storage/models/files_tests.rb
fog-maestrodev-1.8.0.20130111070250 tests/storage/models/files_tests.rb
fog-maestrodev-1.8.0.20130109172219 tests/storage/models/files_tests.rb
fog-sgonyea-1.8.1 tests/storage/models/files_tests.rb
fog-1.8.0 tests/storage/models/files_tests.rb
fog-maestrodev-1.7.0.20121114190951 tests/storage/models/files_tests.rb
fog-1.7.0 tests/storage/models/files_tests.rb
fog-1.6.0 tests/storage/models/files_tests.rb