This file contains hidden or 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
buildscript { | |
repositories { | |
maven { url "http://oss.jfrog.org/repo" } | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'io.ratpack:ratpack-gradle:0.9.7' | |
} | |
} |
This file contains hidden or 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
buildscript { | |
repositories { | |
maven { url "http://oss.jfrog.org/repo" } | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'io.ratpack:ratpack-gradle:0.9.7' | |
} | |
} |
This file contains hidden or 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
void next() { | |
nextButton.click() | |
waitForAnimationComplete() | |
} | |
private void waitForAnimationComplete() { | |
waitFor { this.jquery."find(':animated').length == 0" } | |
} |
This file contains hidden or 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
<html> | |
<head> | |
</head> | |
<body> | |
<div class="spec pass/some-fail/fail first/last odd/even" id="«spec-class-name»"> | |
<div class="details"> | |
<div class="name">My first spec</div> | |
<div class="duration">3 mins 17 seconds</div> | |
<div class="result">fail</div> | |
</div> |
This file contains hidden or 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
<html> | |
<head> | |
</head> | |
<body> | |
<div class="spec"> | |
<div class="details"> | |
<div class="name">My first spec</div> | |
<div class="duration">3 mins 17 seconds</div> | |
<div class="result">fail</div> | |
</div> |
This file contains hidden or 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
Spock For Non-Believers | |
Which code would you rather want to read, write, and maintain? Choose the right answer and win a trip to Vulcan! | |
A. B. | |
/* Seven lines of imports removed for clarity */ /* Zero lines of imports removed for clarity */ | |
@RunWith(Parameterized.class) class HelloSpock extends spock.lang.Specification { | |
public class HelloSpock { def "length of Spock and friends"() { |