This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e -x | |
if [ -a .commit ] | |
then | |
rm .commit | |
# We format partially-staged files in the pre-commit hook, as that's the only safe way. | |
# If a partially-staged file needed reformatting, it's been re-formatted in pre-commit, | |
# and the commit has been cancelled so that the user can re-add the re-formmatted hunks. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example | |
import spock.lang.Ignore | |
import spock.lang.Specification | |
class StubAfterStubSpec extends Specification { | |
private static final DEFAULT_STUBBING = 42 | |
def stub |