Skip to content

Instantly share code, notes, and snippets.

@bradleybeddoes
Created May 4, 2010 05:34
Show Gist options
  • Save bradleybeddoes/388997 to your computer and use it in GitHub Desktop.
Save bradleybeddoes/388997 to your computer and use it in GitHub Desktop.
def setup() {
def profile = new ProfileBase()
user = new UserBase(username:'testuser', profile: profile).save()
processService.metaClass.authenticatedUser = user
minimalDefinition = new File('test/data/minimal.pr').getText()
}
@smangelsdorf
Copy link

def setup() {
    def profile = new ProfileBase()
    user = new UserBase(username:'testuser', profile: profile).save()
    processService.metaClass.getAuthenticatedUser = {->user}

    minimalDefinition = new File('test/data/minimal.pr').getText()
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment