Raise runtime error if jasmine-webkit-specrunner isn't available #150

Open
redbeard wants to merge 2 commits from redbeard/master into master

View File

@ -195,7 +195,9 @@ module Jasmine
end
end
runner = lambda { system jasmine_command(run_targets) }
runner = lambda {
raise "Error #{$?} while attempting to run '#{jasmine_command(run_targets)}', probably because jasmine-webkit-specrunner hasn't been compiled." if system(jasmine_command(run_targets)) == 127
}
if options[:use_server]
wrap_in_server(run_targets, &runner)