Skip to content

Instantly share code, notes, and snippets.

org.springframework.cloud.contract.spec.Contract.make {
request {
method 'GET'
url $(client(regex('/api/articles/.*')), server(execute('getArticleId()')))
}
@jakubnabrdalik
jakubnabrdalik / Logitech R400 with OSX and Google Docs
Created November 30, 2015 09:15
Mapping R400 to behave correctly on OSX in Google Docs presentations
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>LOGITECH_R400</productname>
<productid>0xc52d</productid>
def "created outlet insert command should have new account"() {
given:
setValidOutletInsertCommandParameters(controller)
userIsLoggedIn()
when:
controller.save()
then:
outletInsertCommandHasNewAccount()
}