Class: Teabag::Drivers::PhantomjsDriver
- Inherits:
-
BaseDriver
- Object
- BaseDriver
- Teabag::Drivers::PhantomjsDriver
- Includes:
- Utility
- Defined in:
- lib/teabag/drivers/phantomjs_driver.rb
Instance Method Summary collapse
Methods included from Utility
Instance Method Details
#run_specs(suite, url) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/teabag/drivers/phantomjs_driver.rb', line 10 def run_specs(suite, url) runner = Teabag::Runner.new(suite) Phantomjs.instance_variable_set(:@path, executable) Phantomjs.run(script, url) do |line| runner.process(line) end runner.failure_count end |