Permalink
Switch branches/tags
Commits on Jun 8, 2017
  1. Add test for gate.exit when state is open

    jordanallain
    jordanallain committed Jun 8, 2017
    Add test to ensure that gate.exit does not transition state to closed
    when invoked while state is open.
  2. Improve README grammar, highlight variable names

    jordanallain
    jordanallain committed Jun 8, 2017
    - Fix sentence structure and typo in requirements section.
    - Surround mentions of variable and method names with back ticks.
  3. Provide further instruction in README

    jordanallain
    jordanallain committed Jun 8, 2017
    Include details about how tests will create charlieCard
    and charlieTicket so developers don't think they have to.
  4. Remove trailing sentence fragment

    jordanallain
    jordanallain committed Jun 8, 2017
    Delete accidental sentence fragment from README
  5. Remove solution code

    jordanallain
    jordanallain committed Jun 8, 2017
    Remove solution code from challenge.js
  6. Add requirements to README

    jordanallain
    jordanallain committed Jun 8, 2017
    Add requirements to explain the challenge in the README.
Commits on Jun 7, 2017
  1. Add blank lines before describe blocks

    jordanallain
    jordanallain committed Jun 7, 2017
    Add blank line before beginning new describe block to improve
    readability.
  2. Add test for exit method

    jordanallain
    jordanallain committed Jun 7, 2017
    Add test to check if gate.exit method works properly.
  3. Add tests for walkThrough method

    jordanallain
    jordanallain committed Jun 7, 2017
    Add tests for walkThrough method when state is closed and open
  4. Remove unnecessary lines from tests

    jordanallain
    jordanallain committed Jun 7, 2017
    Removed lines from tests that were manipulating data unnecessarily.
  5. Edit tests for checking presence of functions

    jordanallain
    jordanallain committed Jun 7, 2017
    The previous tests that checked if tapCard, insertTicket, walkThrough
    and exit were functions was not correct. Edit the tests to properly
    check if these are in fact functions.
  6. Add test for charlieTicket without enough value

    jordanallain
    jordanallain committed Jun 7, 2017
    Add test for inserting a charlieTicket that has less than 2.25
  7. Test presence of methods in first describe block

    jordanallain
    jordanallain committed Jun 7, 2017
    In initial describe block, test that each method exists and
    is indeed a function.
  8. Break down tests for insertTicket method

    jordanallain
    jordanallain committed Jun 7, 2017
    Break insertTicket tests down into multiple tests for different
    scenarios.
  9. Start process to modularize test suite

    jordanallain
    jordanallain committed Jun 7, 2017
    Making the tests more robust by creating charlieTicket and charlieCard
    for different testing purposes. Also breaking them out into their own
    describe blocks instead of them all being stored in one.
  10. Move charlieCard and charlieTicket to test file

    jordanallain
    jordanallain committed Jun 7, 2017
    Create the charlieCard and charlieTicket in the test instead of
    in the challenge to allow for testing of different scenarios.
  11. Add tests for insertTicket method

    jordanallain
    jordanallain committed Jun 7, 2017
    Add tests to check the insertTicket method in cases where state
    is closed or open.
  12. Edit insertTicket method to check gate state

    jordanallain
    jordanallain committed Jun 7, 2017
    Edit the insertTicket method to check if the gate is closed
    first before subtracting money from the ticket.
Commits on Jun 6, 2017
  1. Add test for insertTicket method

    jordanallain
    jordanallain committed Jun 6, 2017
    Add test to check the insertTicket method
  2. Add charlieTicket with value

    jordanallain
    jordanallain committed Jun 6, 2017
    Add charlieTicket with monetary value that can be inserted
    into SubwayGate to open.
  3. Add test for tapCard method

    jordanallain
    jordanallain committed Jun 6, 2017
    Add test that checks the tapCard method.
  4. Add charlieCard object with monthlyValue

    jordanallain
    jordanallain committed Jun 6, 2017
    Add a charlieCard object with a monthlyValue to use to open
    the SubwayGate
  5. Add tapCard test, remove test for enter

    jordanallain
    jordanallain committed Jun 6, 2017
    Remove test for enter method, add test for tapCard
  6. Replace enter method with tapCard

    jordanallain
    jordanallain committed Jun 6, 2017
    Remove enter method, replace with tapCard method that transitions
    state to open. Remove calls to walkThrough from other methods.
  7. Use 'open' and 'closed' to represent state

    jordanallain
    jordanallain committed Jun 6, 2017
    Replace true and false with 'open' and 'closed' to
    represent state in SubwayGate
  8. Add enter method to SubwayGate

    jordanallain
    jordanallain committed Jun 6, 2017
    Add enter method to SubwayGate and to challenge spec.
  9. Add exit method to SubwayGate

    jordanallain
    jordanallain committed Jun 6, 2017
    Add exit method to SubwayGate and test that transitions
    state to true and invoked walkThrough method.
  10. Add walkThrough method to SubwayGate

    jordanallain
    jordanallain committed Jun 6, 2017
    Add walkThough method to SubwayGate that transitions
    state to false
  11. Add challenge and spec files

    jordanallain
    jordanallain committed Jun 6, 2017
    - Add lib/challenge with starter code.
    - Add challenge.spec file to test challenge.
  12. Restructure README skeleton

    jordanallain
    jordanallain committed Jun 6, 2017
    Restructure skeleton of README to resemble a challenge
    README.
Commits on Jun 5, 2017
  1. Update master from node-template

    jordanallain
    jordanallain committed Jun 5, 2017
    Update master from node-template/master
  2. Update master from challenge-template

    jordanallain
    jordanallain committed Jun 5, 2017
    Update master from challenge-template/master
  3. Update `.gitignore` from templates

    jordanallain
    jordanallain committed Jun 5, 2017
    From `challenge-template` and `node-template`
  4. Rename repo in README/package.json

    jordanallain
    jordanallain committed Jun 5, 2017
    Overwrite template name with challenge name in appropriate places.
  5. Initial Commit from node-template

    jordanallain
    jordanallain committed Jun 5, 2017
                        ..$$$$..   ..$$$$..
                        ..$$$$$7...$$$$$$..
               ..$$. ....$$$$$$$$$$$$$$$$$.....,$$..
               Z$$$$$$$$$$$$$$$$$$$$$$$$$$$$Z$$$$$$Z
               .Z$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$.
               .$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$.
               Z$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$Z
       ..$$$$$$$$$$$$Z7.....$$$$$$$$$......$$$$$$$$$$$$$$$..
       .$$$$$$$$$$$Z..      . $$$$$$$      7$$$$$$$$$$$$$$$.
       .Z$$$$$$$$$$=    ..    .$$$$$$      .$$$$$$$$$$$$$$Z.
         $$$$$$$$$$.  ..$$$   ..$$$$$      .$$$$$$$$$$$$$$
       ..$$$$$$$$$$.  ..$$$.    $$$$$      .$$$$$$$$$$$$$7..
      ...$$$$$$$$$$.  ..$$$.    $$$$.      .$$$$$$$$$$$$$$... ..
    $,=$$$$$$$$$$$$.  ..$$$.    $$$$.      .,$$$$$$$$$$$$$$$~,I.
    $$$$$$$$$$$$$$$.  ..$$$ ....$$$$.      ..$$$$$$$$$$$$$$$$$$.
    $$$$$$$$$$$$$$$.  ..$$$$$$$$$$$$.        $$$$$$$$$$$$$$$$$$.
    .7$$$$$$$$$$$$$.  ..$$$$$$$$$$$~.        $$$$$$$$$$$$$$$$I..
     ..$$$$$$$$$$$$.  ..$$$$$$$$$$$.   ....  $$$$$$$$$$$$$$$..
     ..$$$$$$$$$$$$.  ..$$$$$$$$$$$  ..$$,.  :$$$$$$$$$$$$$$..
     ..$$$$$$$$$$$$.  ..$.......$$$  .$$$$$...$$$$$$$$$$$$$$..
    .7$$$$$$$$$$$$$.  ..$.      $$$  .$$$$$...$$$$$$$$$$$$$$$I..
    $$$$$$$$$$$$$$$.  ..$...    $$+  ..$$$.  .$$$$$$$$$$$$$$$$$.
    $$$$$$$$$$$$$$$.  ..$$$.    $$.          .7$$$$$$$$$$$$$$$$.
    $,=$$$$$$$$$$$$.  ..$$$.    $$.  ......  ..$$$$$$$$$$$$$~,7.
    . . .$$$$$$$$$$.  ..$$$.    $$.  ..$$$.   .$$$$$$$$$$$... ..
       ..$$$$$$$$$$.  ..$$$.    $$.   .$$$.    $$$$$$$$$$7..
         $$$$$$$$$$.  ..$$+.  ..$I   .+$$$.    $$$$$$$$$$$
       .Z$$$$$$$$$$?    .      $$.   .$$$$?    7$$$$$$$$$$Z.
       .$$$$$$$$$$$$,.      ..$$$.   .$$$$$    .$$$$$$$$$$$.
       ..$$$$Z$$$$$$$$$.....$$$$$.....$$$$$.....$$$$$$$$$$..
               $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$Z
               .$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$.
               .Z$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$.
               $$$$$$$Z$$$$$$$$$$$$$$$$$$$$$$$$$$$$Z
               ..$$......$$$$$$$$$$$$$$$$$.....,$$..
                        ..$$$$$7...$$$$$$..
                        ..$$$$..    .$$$$..
                        .....~..   ..:.....