Fail with an error if node is not installed when running rake spec
This commit is contained in:
parent
de7be4b316
commit
c30f7d1aa7
2
Rakefile
2
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)"
|
||||
|
Loading…
Reference in New Issue
Block a user