Commits

Allan Davis committed 844b3fd

Started working on test

  • Participants
  • Parent commits d7e0141

Comments (0)

Files changed (5)

File code/TipCalculator/Frank/frankified_build/Frankified.app/Default-568h@2x.png

Added
New image

File code/TipCalculator/Frank/frankified_build/Frankified.app/TipCalculator

Binary file modified.

File code/TipCalculator/Frank/frankified_build/Frankified.app/en.lproj/MainStoryboard.storyboardc/2-view-3.nib

Binary file modified.

File code/TipCalculator/Frank/frankified_build/Frankified.app/en.lproj/MainStoryboard.storyboardc/UIViewController-2.nib

Binary file modified.

File source/tip_calculator.rst

   
   $ frank setup
 
-To build a frankified version of the application run:
+To build the frankified version of the application run:
 
 .. code-block:: bash
   
-  $ frank build_and_install
+  $ frank build_and_launch
   
-
+This compiles the app and includes a small web server to work with the app.  if you run  'frank inspect' it will launch a web browser and allow you to inspect the app. Now we can run our first cucumber test.
   
 .. code-block:: bash
 
   $ export APP_BUNDLE_PATH=./Frank/frankified_build/./Frankified.app
+  $ cucumber Frank/features/my_first.feature 
 
+Start with the Model
+----------------------
 
+Let's start by creating a test.  In Xcode, select "File" -> "New" -> "File..." to open up the File template dialog.  Select "Kiwi" under iOS, then select the Kiwi template.  Next you can enter "Calculator" for the name of the class we want to test. The last step is to decide where the files go on the file system. I would put them into the Application test directory.  
 
-Create a Rake File
-^^^^^^^^^^^^^^^^^^^^^^^
-
-Starting With a Test
----------------------
-
+Open the CalculatorSpec.m file to edit 
 
-Making The Test Pass
--------------------------
-
-
-Cleaning up The Code
------------------------
+.. literalinclude:: ../code/TipCalculator/TipCalculatorTests/CalculatorSpec.m
+    :linenos:
+    :language: objc
+    :lines: 1-5,36-38