2010-11-16 18:31:34 -05:00
|
|
|
def directory_tests(connection, params = {}, mocks_implemented = true)
|
|
|
|
|
|
|
|
params = {:key => 'fogdirectorytests'}.merge!(params)
|
2010-11-03 21:17:20 -04:00
|
|
|
|
2010-11-11 14:54:55 -05:00
|
|
|
model_tests(connection.directories, params, mocks_implemented) do
|
2010-11-03 21:17:20 -04:00
|
|
|
|
2010-11-05 14:37:12 -04:00
|
|
|
tests("#public=(true)").succeeds do
|
2010-11-16 18:31:34 -05:00
|
|
|
pending if Fog.mocking? && !mocks_implemented
|
2010-11-11 14:54:55 -05:00
|
|
|
@instance.public=(true)
|
2010-11-05 14:37:12 -04:00
|
|
|
end
|
|
|
|
|
2010-11-16 18:31:34 -05:00
|
|
|
if !Fog.mocking? || mocks_implemented
|
2010-12-29 20:05:26 -05:00
|
|
|
@instance.responds_to(:public_url)
|
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
|