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

23 lines
No EOL
566 B
Ruby

Shindo.tests("Fog::Storage[:hp] | directories", ['hp', 'storage']) do
collection_tests(Fog::Storage[:hp].directories, {:key => "fogdirtests"}, true)
tests('success') do
tests("#create('fogdirtests')").succeeds do
Fog::Storage[:hp].directories.create(:key => 'fogdirtests')
end
tests("#head('fogdirtests')").succeeds do
Fog::Storage[:hp].directories.head('fogdirtests')
end
tests("#get('fogdirtests')").succeeds do
@directory = Fog::Storage[:hp].directories.get('fogdirtests')
end
@directory.destroy
end
end