Skip to content

Commit

Permalink
NOJIRA Added self-cleanup method for creating test users.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Hall committed Jul 25, 2011
1 parent 0603d6b commit 461692b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,14 @@ def create_user(username, firstname = nil, lastname = nil)
@created_users << u
return u
end


def create_test_user(i)
u = @um.create_test_user(i)
assert_not_nil(u, "Expected user to be created: #{i}")
@created_users << u
return u
end

def create_group(groupname, title = nil)
g = @um.create_group(groupname, title)
assert_not_nil(g, "Expected group to be created: #{groupname}")
Expand Down

0 comments on commit 461692b

Please sign in to comment.