Permalink
Browse files

Merge pull request #25 from bradleyd/master

has_user for verifiers
  • Loading branch information...
2 parents 9b5d935 + 0848af3 commit 9cc57b704e86c8497d152d87567a678e3a752b20 @crafterm committed Sep 9, 2011
Showing with 15 additions and 0 deletions.
  1. +15 −0 lib/sprinkle/verifiers/user.rb
View
15 lib/sprinkle/verifiers/user.rb
@@ -0,0 +1,15 @@
+module Sprinkle
+ module Verifiers
+ # = User Verifier
+ # This was added so we dont have to verify a file to see if user was created
+ # Defines a verify which can be used to test the existence of a user.
+ module Users
+ Sprinkle::Verify.register(Sprinkle::Verifiers::Users)
+
+ # Tests that the user exists
+ def has_user(user)
+ @commands << "id #{user}"
+ end
+ end
+ end
+end

0 comments on commit 9cc57b7

Please sign in to comment.