Allan Davis avatar Allan Davis committed 844b3fd

Started working on test

Comments (0)

Files changed (5)

Add a comment to this file

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

Added
New image
Add a comment to this file

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

Binary file modified.

Add a comment to this file

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

Binary file modified.

Add a comment to this file

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

Binary file modified.

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
 
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.