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