lib/teaspoon/driver/phantomjs.rb in teaspoon-1.0.2 vs lib/teaspoon/driver/phantomjs.rb in teaspoon-1.1.0
- old
+ new
@@ -31,9 +31,13 @@
protected
def run(*args, &block)
IO.popen([executable, *args].join(" ")) { |io| io.each(&block) }
+
+ unless $?.success?
+ raise Teaspoon::DependencyError.new("Failed to use phantomjs, which exited with status code: #{$?.exitstatus}")
+ end
end
def driver_options(url)
[
@options,