1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/helpers/storage/directory_tests.rb

19 lines
432 B
Ruby
Raw Normal View History

def directory_tests(connection, params = {}, mocks_implemented = true)
params = {:key => 'fogdirectorytests'}.merge!(params)
model_tests(connection.directories, params, mocks_implemented) do
tests("#public=(true)").succeeds do
pending if Fog.mocking? && !mocks_implemented
@instance.public=(true)
end
if !Fog.mocking? || mocks_implemented
2010-12-29 20:05:26 -05:00
@instance.responds_to(:public_url)
end
end
end