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:
parent
e7fae46361
commit
2f2aa769b9
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue