From c30f7d1aa7f0a0cd1e57d190db1e2110e49939c5 Mon Sep 17 00:00:00 2001 From: ragaskar Date: Fri, 6 May 2011 18:34:42 -0400 Subject: [PATCH] Fail with an error if node is not installed when running rake spec --- Rakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 6610545..9da9602 100644 --- a/Rakefile +++ b/Rakefile @@ -33,7 +33,7 @@ task :spec => ["spec:node", "spec:browser", "jasmine:hint"] namespace :spec do desc 'Run specs in Node.js' task :node do - system("node spec/node_suite.js") + raise "Node is required to run all jasmine specs" unless system("node spec/node_suite.js") end desc "Run specs in the default browser (MacOS only)" @@ -163,4 +163,4 @@ jasmine.version_= { exec "cd #{temp_dir} && zip -r #{zip_file_name} . -x .[a-zA-Z0-9]*" end -end \ No newline at end of file +end