lib/teaspoon/drivers/phantomjs_driver.rb in teaspoon-0.7.4 vs lib/teaspoon/drivers/phantomjs_driver.rb in teaspoon-0.7.5
- old
+ new
@@ -11,10 +11,10 @@
runner = Teaspoon::Runner.new(suite)
Phantomjs.instance_variable_set(:@path, executable)
# Phantomjs.run takes the command-line args as an array, so if we need to pass in switches/flags, need to split on space
Phantomjs.run(*([driver_cli_options && driver_cli_options.split(" "), script, url].flatten.compact)) do |line|
- runner.process(line)
+ runner.process(line) if line && line.strip != ""
end
runner.failure_count
end