From 089a21e52b9256d4fd53e5f1fbc9a06b2470a155 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 4 May 2011 07:45:52 -0400 Subject: [PATCH] raise an error if the specrunner is not found --- bin/jasmine-headless-webkit | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/jasmine-headless-webkit b/bin/jasmine-headless-webkit index 5a044ed..a0a75ce 100755 --- a/bin/jasmine-headless-webkit +++ b/bin/jasmine-headless-webkit @@ -30,6 +30,11 @@ opts.each(&process_options) data = YAML.load_file(ARGV.shift || 'spec/javascripts/support/jasmine.yml') gem_dir = File.expand_path('../..', __FILE__) +if !File.file?(File.join(gem_dir, 'ext/jasmine-webkit-specrunner/jasmine-webkit-specrunner')) + puts "The Qt WebKit widget is not compiled! Try re-installing this gem." + exit 1 +end + puts "Running Jasmine specs..." files = [