Skip to content

Instantly share code, notes, and snippets.

@microbial
Last active December 28, 2015 05:59
Show Gist options
  • Save microbial/7453834 to your computer and use it in GitHub Desktop.
Save microbial/7453834 to your computer and use it in GitHub Desktop.
Play Requirements
/**
* Possible Test Requirements for Tracker App
*/
describe("Normal play conditions", function(){
it("should provide a list of clubs when requested");
it("should select a club when requested");
it("should ask for a moodswing after a club is selected");
it("should prompt for What's next? after moodswing has been saved", function() {
//next_shot();
//next_hole();
//edit();
//exit();
});
it("should progress play to the next milestone", function() {
//next hole if exists
//complete round if no next hole
})
});
describe("Special play conditions", function(){
it("should ask which hole the player would like to edit when 'edit score' is requested");
it("should record current hole and shot upon entering the 'edit score' functionality");
it("should allow 'edit score' to run only if the requested trackedHole exists");
it("should show previously entered club and moodswing after hole is entered into 'edit score' method");
it("should change the 'edit score' active_club when requested");
it("should change the 'edit score' active_moodswing when requested");
it("should return the player to her current hole after 'save' has been called");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment