2011-01-03 14:23:51 -05:00
|
|
|
for provider, config in storage_providers
|
2010-11-16 18:31:34 -05:00
|
|
|
|
2012-08-15 11:19:32 -04:00
|
|
|
Shindo.tests("Storage[:#{provider}] | directory", [provider.to_s]) do
|
2010-11-03 21:17:20 -04:00
|
|
|
|
2011-05-24 20:32:27 -04:00
|
|
|
if !Fog.mocking? || config[:mocked]
|
2010-11-03 21:17:20 -04:00
|
|
|
|
2011-05-24 20:32:27 -04:00
|
|
|
directory_attributes = {
|
|
|
|
:key => 'fogdirectorytests'
|
|
|
|
}.merge!(config[:directory_attributes] || {})
|
2011-01-03 14:23:51 -05:00
|
|
|
|
2011-09-20 12:03:56 -04:00
|
|
|
model_tests(Fog::Storage[provider].directories, directory_attributes, config[:mocked]) do
|
2011-05-24 20:32:27 -04:00
|
|
|
|
|
|
|
tests("#public=(true)").succeeds do
|
|
|
|
pending if Fog.mocking? && !config[:mocked]
|
|
|
|
@instance.public=(true)
|
|
|
|
end
|
|
|
|
|
|
|
|
tests('responds_to(:public_url)') do
|
|
|
|
pending if Fog.mocking? && !config[:mocked]
|
2011-09-20 12:03:56 -04:00
|
|
|
responds_to(:public_url)
|
2011-05-24 20:32:27 -04:00
|
|
|
end
|
2011-01-03 14:23:51 -05:00
|
|
|
|
|
|
|
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
|