mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
18 lines
422 B
Ruby
18 lines
422 B
Ruby
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
|
|
responds_to(:public_url)
|
|
end
|
|
|
|
end
|
|
|
|
end
|