class QUnited::Driver::PhantomJs

Constants

RUNNER_JS

Public Class Methods

available?() click to toggle source

Determines whether this driver available to use. Checks whether phantomjs is on the PATH.

# File lib/qunited/driver/phantomjs/phantomjs.rb, line 14
def self.available?
  !!which('phantomjs')
end

Public Instance Methods

command() click to toggle source
# File lib/qunited/driver/phantomjs/phantomjs.rb, line 22
def command
  %|phantomjs "#{RUNNER_JS}" "#{@tests_file.path}"|
end
name() click to toggle source
# File lib/qunited/driver/phantomjs/phantomjs.rb, line 18
def name
  'PhantomJS'
end