Fail with an error if node is not installed when running rake spec

This commit is contained in:
ragaskar 2011-05-06 18:34:42 -04:00
parent de7be4b316
commit c30f7d1aa7
1 changed files with 2 additions and 2 deletions

View File

@ -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)"