From ed749136e5b75513ce747196b7eb60f42cec26e7 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Tue, 3 May 2011 10:00:42 -0400 Subject: [PATCH] note about autotest hooks --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 39a980c..a971c6c 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,14 @@ Jasmine tests run after RSpec tests. You need to create a `.jasmine-headless-webkit` file in your project root for this integration to work. +`jasmine-headless-webkit` provides two new hooks: `:run_jasmine` and `:ran_jasmine` for before and after the +Jasmine specs have run. This is a good place to do things like re-package all your assets using +[Jammit](http://documentcloud.github.com/jammit/): + + Autotest.add_hook(:run_jasmine) do |at| + system %{jammit} + end + ### Server Interaction `jasmine-headless-webkit` works the same as if you create an HTML file, manually load the Jasmine library and