From ca45584d5271ff28306837a01e41011b28637c0f Mon Sep 17 00:00:00 2001 From: Dmytrii Nagirniak Date: Sat, 5 Nov 2011 11:35:21 +1100 Subject: [PATCH 1/3] Update README with quicker setup --- README.md | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index adb786f..ee26c5b 100644 --- a/README.md +++ b/README.md @@ -100,21 +100,26 @@ group :development, :test do end ``` -and add a route for the Jasmine Test Runner to `config/routes.rb`: - -```ruby -if ["development", "test"].include? Rails.env - mount Jasminerice::Engine => "/jasmine" -end +And run following from the Terminal: +Or here's do a quick setup: +```bash +mkdir -p spec/javascripts +echo -e "#=require application\n#=require_tree ./" > spec/javascripts/spec.js.coffee +echo -e "/*\n * add css using =require application\n */" > spec/javascripts/spec.css ``` -Next you create the directory `spec/javascripts` where your CoffeeScript tests go into. You define the Rails 3.1 +This creates the directory `spec/javascripts` where your CoffeeScript tests go into. You define the Rails 3.1 asset pipeline manifest in `spec/javascripts/spec.js.coffee`: ```coffeescript +#=require application #=require_tree ./ ``` +It also creates an empty `spec/javascripts/spec.css` file as it is always requested when running specs. + +Now you can access to `/jasmine` url when you start rails server normally. + ## Rails 2 & Rails 3 setup With Rails 2 or Rails 3 you can use [the Jasmine Gem][] to configure your Jasmine specs and server the Jasmine From ea3e8c86495b882eb422b251523d8d094a9d8fec Mon Sep 17 00:00:00 2001 From: Dmytrii Nagirniak Date: Sat, 5 Nov 2011 11:40:50 +1100 Subject: [PATCH 2/3] Remove incorrect sentence. --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index ee26c5b..57067f6 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,6 @@ end ``` And run following from the Terminal: -Or here's do a quick setup: ```bash mkdir -p spec/javascripts echo -e "#=require application\n#=require_tree ./" > spec/javascripts/spec.js.coffee From cf9a5757b95f268934318f00dc0250386f695020 Mon Sep 17 00:00:00 2001 From: Dmytrii Nagirniak Date: Sat, 5 Nov 2011 11:42:21 +1100 Subject: [PATCH 3/3] spelling fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 57067f6..afa5ec1 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ asset pipeline manifest in `spec/javascripts/spec.js.coffee`: It also creates an empty `spec/javascripts/spec.css` file as it is always requested when running specs. -Now you can access to `/jasmine` url when you start rails server normally. +Now you can access `/jasmine` url when you start rails server normally. ## Rails 2 & Rails 3 setup