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

29 lines
697 B
Ruby

for provider, config in storage_providers
Shindo.tests("Storage[:#{provider}] | directory", [provider.to_s]) do
if !Fog.mocking? || config[:mocked]
directory_attributes = {
:key => 'fogdirectorytests'
}.merge!(config[:directory_attributes] || {})
model_tests(Fog::Storage[provider].directories, directory_attributes, config[:mocked]) do
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]
responds_to(:public_url)
end
end
end
end
end