Skip to content

retrieve_user return nil if the user doesn't exist #10

@GoogleCodeExporter

Description

@GoogleCodeExporter
In writing my test cases, I would prefer to do something like the following...

    google_user = google_apps_connection.retrieve_user(google_username)
    unless google_user.nil?
      google_apps_connection.delete_user(google_username)
    end
    ...
    here is my code that creates a user
    ...
    google_user = google_apps_connection.retrieve_user(google_username)

Original issue reported on code.google.com by profes...@gmail.com on 14 May 2010 at 3:26

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions