Skip to content

Commit

Permalink
added test for create logic to default path to '/'
Browse files Browse the repository at this point in the history
  • Loading branch information
virtualstaticvoid committed Nov 29, 2012
1 parent e7fae46 commit 2f2aa76
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/aws/models/iam/users_tests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

@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
Expand All @@ -18,6 +19,11 @@
@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
Expand Down

0 comments on commit 2f2aa76

Please sign in to comment.