Class: MSpec::Opal::Runner::PhantomJS

Inherits:
Opal::Util::Command show all
Defined in:
opal/lib/mspec/opal/rake_task.rb

Instance Attribute Summary

Attributes inherited from Opal::Util::Command

#command, #message, #options

Instance Method Summary collapse

Constructor Details

#initialize(runner, url) ⇒ PhantomJS

Returns a new instance of PhantomJS



80
81
82
83
84
# File 'opal/lib/mspec/opal/rake_task.rb', line 80

def initialize(runner, url)
  runner = runner.shellescape
  url    = url.shellescape
  super 'phantomjs', "#{runner} #{url}", '. Please install PhantomJS'
end

Instance Method Details

#runObject



86
87
88
# File 'opal/lib/mspec/opal/rake_task.rb', line 86

def run
  system "#{command} #{options}"
end