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

25 lines
580 B
Ruby
Raw Normal View History

for provider, config in storage_providers
Shindo.tests("#{provider}::Storage | directory", [provider.to_s.downcase]) do
directory_attributes = {
:key => 'fogdirectorytests'
2011-01-03 16:36:31 -05:00
}.merge!(config[:directory_attributes] || {})
model_tests(provider[:storage].directory, directory_attributes, config[:mocked]) do
tests("#public=(true)").succeeds do
pending if Fog.mocking? && !config[:mocked]
@instance.public=(true)
end
if !Fog.mocking? || config[:mocked]
@instance.responds_to(:public_url)
end
end
end
end