Skip to content
Browse files

Added section re TextMate integration to the README.

  • Loading branch information...
1 parent 8a903f8 commit 163c64a92ed5705c6be7bceb7bd0e4d6207b6feb Larry Karnowski committed
Showing with 11 additions and 0 deletions.
  1. +11 −0 README.markdown
View
11 README.markdown
@@ -169,6 +169,17 @@ Smoke is a JavaScript mocking and stubbing toolkit that is somewhat similar to F
expect(SalesContract.calculateTotalCost([componentX, componentY])).to(equal, 66);
});
+TextMate Integration
+--------------------
+Run your specs directory from TextMate using the [Blue Ridge TextMate Bundle](http://github.com/karnowski/blue-ridge.tmbundle). (It's a fork of the original [Screw.Unit TextMate Bundle](http://github.com/coreyti/screw-unit-tmbundle) but adapted for use with the Blue Ridge plugin.)
+
+ cd ~/Library/Application Support/TextMate/Bundles/
+ git clone git://github.com/karnowski/blue-ridge-tmbundle.git Blue\ Ridge.tmbundle
+
+Then when editing a Screw.Unit spec file in TextMate you can:
+* press command-R to run the spec directly from TextMate
+* type snippets like "it", "des", "bef", "aft" and then press the tab key to expand into full it blocks, describe blocks, etc.
+
Tips & Tricks
-------------
* Avoid using `print` in your tests while debugging. It works fine from the command line but causes lots of headaches in browser. (Just imagine a print dialog opening ten or fifteen times and then Firefox crashing. This is a mistake I've made too many times! Trust me!)

0 comments on commit 163c64a

Please sign in to comment.
Something went wrong with that request. Please try again.