Skip to content

Instantly share code, notes, and snippets.

@ctoestreich
Created January 31, 2016 02:34
Show Gist options
  • Save ctoestreich/5f4cc419870c17f95897 to your computer and use it in GitHub Desktop.
Save ctoestreich/5f4cc419870c17f95897 to your computer and use it in GitHub Desktop.
package org.grails.demo
import grails.plugins.rest.client.RestBuilder
import spock.lang.Specification
class BaseRestBuilderSpec extends Specification {
def setup() {
RestBuilder.metaClass.constructor = { ->
return new MockRestBuilder()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment