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
import Pkg | |
using GitHub | |
using CSV | |
using DataFrames | |
using Dates | |
# Don't commit this once you add your auth token!! | |
GITHUB_AUTH = "" # INSERT your Github auth token | |
myauth = GitHub.authenticate(GITHUB_AUTH) | |
path = "" # INSERT the local path to your clone of the JuliaRegistries/General repo |
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
describe('Climber') | |
describe('hasRope') | |
context('given a Sterling Rope') | |
it('should have a rope') | |
... | |
end | |
end | |
context('given no rope') | |
it ('should not have a rope') | |
... |
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
describe('Climber') | |
context('given a Sterling Rope') | |
it('should have a rope') | |
... | |
end | |
end | |
context('given no rope') | |
it ('should not have a rope') | |
... | |
end |
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
public class ClimberTest { | |
private climber; | |
@Before | |
void setup() { | |
climber = new Climber(); | |
} | |
@Test | |
public void testHasRopeWithRope() { | |
climber.setRope(new SterlingRope()); |
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
// Describe: the TripRequest model | |
@RunWith(HierarchicalContextRunner.class) | |
public class TripRequestTest { | |
static Instant now; | |
static Instant past; | |
static Instant future; | |
TimeSlot timeSlotNow; | |
TimeSlot timeSlotPast; | |
TimeSlot timeSlotFuture; |