Sha256: 72f072b135a4a6ee13b69376d43783b1fa4e1ac2f4cc3c0a25ade2f2af44852a
Contents?: true
Size: 505 Bytes
Versions: 82
Compression:
Stored size: 505 Bytes
Contents
module CFoundryHelpers def random_str format("%x", rand(1000000)) end def random_user "#{random_str}@cfoundry-spec.com" end def without_auth proxy = @client.proxy @client.logout @client.proxy = nil yield ensure @client.login(USER, PASSWORD) @client.proxy = proxy end def with_new_user @user = @client.register(random_user, "test") @client.proxy = @user.email yield ensure @client.proxy = nil @user.delete! @user = nil end end
Version data entries
82 entries across 82 versions & 2 rubygems