tests/storage/models/directory_test.rb in fog-0.8.1 vs tests/storage/models/directory_test.rb in fog-0.8.2
- old
+ new
@@ -1,22 +1,26 @@
for provider, config in storage_providers
Shindo.tests("#{provider}::Storage | directory", [provider.to_s.downcase]) do
- directory_attributes = {
- :key => 'fogdirectorytests'
- }.merge!(config[:directory_attributes] || {})
+ if !Fog.mocking? || config[:mocked]
- model_tests(provider[:storage].directory, directory_attributes, config[:mocked]) do
+ directory_attributes = {
+ :key => 'fogdirectorytests'
+ }.merge!(config[:directory_attributes] || {})
- tests("#public=(true)").succeeds do
- pending if Fog.mocking? && !config[:mocked]
- @instance.public=(true)
- end
+ model_tests(provider[:storage].directory, directory_attributes, config[:mocked]) do
- tests('responds_to(:public_url)') do
- pending if Fog.mocking? && !config[:mocked]
- @instance.responds_to(:public_url)
+ 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]
+ @instance.responds_to(:public_url)
+ end
+
end
end
end