lib/phantomjs/poltergeist.rb in phantomjs-1.8.1.1 vs lib/phantomjs/poltergeist.rb in phantomjs-1.9.2.0

- old
+ new

@@ -1,7 +1,13 @@ # encoding: utf-8 require 'phantomjs' -require 'capybara/poltergeist' + +begin + require 'capybara/poltergeist' +rescue => LoadError + raise "Poltergeist support requires the poltergeist gem to be available." +end + Phantomjs.path # Force install on require Capybara.register_driver :poltergeist do |app| Capybara::Poltergeist::Driver.new(app, :phantomjs => Phantomjs.path) end \ No newline at end of file