2011-01-03 14:23:51 -05:00
|
|
|
for provider, config in storage_providers
|
2010-11-16 18:31:34 -05:00
|
|
|
|
2011-01-03 14:23:51 -05:00
|
|
|
Shindo.tests("#{provider}::Storage | directory", [provider.to_s.downcase]) do
|
2010-11-03 21:17:20 -04:00
|
|
|
|
2011-01-03 14:23:51 -05:00
|
|
|
params = {
|
|
|
|
:key => 'fogdirectorytests'
|
|
|
|
}.merge!(config[:directory_params] || {})
|
2010-11-03 21:17:20 -04:00
|
|
|
|
2011-01-03 14:23:51 -05:00
|
|
|
model_tests(provider[:storage].directory, params, 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
|
2010-11-05 14:37:12 -04:00
|
|
|
|
2010-11-16 18:31:34 -05:00
|
|
|
end
|
2010-11-05 14:37:12 -04:00
|
|
|
|
2010-11-03 21:17:20 -04:00
|
|
|
end
|
|
|
|
|
2010-11-11 14:54:55 -05:00
|
|
|
end
|