Sha256: 8d0025240dda46baa8004befca9fd2722ed5ce2140b9194ea96c96b1ba9681b3

Contents?: true

Size: 539 Bytes

Versions: 4

Compression:

Stored size: 539 Bytes

Contents

require 'pathname'
require 'tempfile'
require 'fileutils'
require 'erb'
require 'open3'

module QUnited
  module Driver
    class PhantomJs < Base
      RUNNER_JS = File.expand_path('../support/runner.js', __FILE__)

      # Determines whether this driver available to use.
      # Checks whether phantomjs is on the PATH.
      def self.available?
        !!which('phantomjs')
      end

      def name
        'PhantomJS'
      end

      def command
        %|phantomjs "#{RUNNER_JS}" "#{@tests_file.path}"|
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
qunited-0.5.3 lib/qunited/driver/phantomjs/phantomjs.rb
qunited-0.5.2 lib/qunited/driver/phantomjs/phantomjs.rb
qunited-0.5.1 lib/qunited/driver/phantomjs/phantomjs.rb
qunited-0.5.0 lib/qunited/driver/phantomjs/phantomjs.rb