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

added test for create logic to default path to '/'

This commit is contained in:
VirtualStaticVoid 2012-11-29 18:42:35 +02:00
parent e7fae46361
commit 2f2aa769b9

View file

@ -7,7 +7,8 @@ Shindo.tests("Fog::Compute[:iam] | users", ['aws','iam']) do
@user_three_name = 'fake_user_three'
@user_three_path = '/path/to/fake_user_three/'
@user_four_name = 'fake_user_four'
tests('#create').succeeds do
@user_one = @iam.users.create(:id => @user_one_name)
@user_one.id == @user_one_name
@ -18,6 +19,11 @@ Shindo.tests("Fog::Compute[:iam] | users", ['aws','iam']) do
@user_three.path == @user_three_path
end
tests('#create', 'defaults path to /').succeeds do
@user_four = @iam.users.create(:id => @user_four_name)
@user_four.path == '/'
end
tests('#all','there is only one user').succeeds do
@iam.users.size == 1
end