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/directories_tests.rb

17 lines
395 B
Ruby
Raw Normal View History

for provider, config in storage_providers
2010-12-29 21:12:51 -05:00
Shindo.tests("Storage[:#{provider}] | directories", [provider]) do
2010-12-29 21:12:51 -05:00
if !Fog.mocking? || config[:mocked]
2010-12-29 21:12:51 -05:00
directory_attributes = {
:key => 'fogdirectoriestests',
}.merge!(config[:directory_attributes] || {})
collection_tests(Fog::Storage[provider].directories, directory_attributes, config[:mocked])
end
end
end