Sha256: 8991f4b95f279da87a8af60a53987a80f44dbed8ee94e815ced0f82fe0dc312c
Contents?: true
Size: 644 Bytes
Versions: 2
Compression:
Stored size: 644 Bytes
Contents
require "phantomjs" require "teabag/runner" require 'teabag/utility' module Teabag module Drivers class PhantomjsDriver < BaseDriver include Teabag::Utility def run_specs(suite, url) runner = Teabag::Runner.new(suite) Phantomjs.instance_variable_set(:@executable, executable) Phantomjs.run(script, url) do |line| runner.process(line) end runner.failure_count end protected def executable @executable ||= which('phantomjs') end def script File.expand_path("../phantomjs/runner.coffee", __FILE__) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
teabag-0.6.0 | lib/teabag/drivers/phantomjs_driver.rb |
teabag-0.5.5 | lib/teabag/drivers/phantomjs_driver.rb |