title: Set Chrome as Default Browser for RSpec/Capybara
body: <p>I'm having some trouble getting Chrome to work with RSpec/Capybara on Ubuntu 13.10 64-bit. By default it launches Firefox - we tried to change this a variety of ways, including:</p>
  
  <p><a href="http://actsasblog.ca/2011/09/28/how-to-use-chrome-with-capybara/">http://actsasblog.ca/2011/09/28/how-to-use-chrome-with-capybara/</a></p>
  
  <p><code>/home/.../xxx_spec.rb:8:in `&lt;top (required)&gt;': undefined local variable or method `“chromedriver”' for main:Object (NameError)
  </code></p>
  
  <p>We also tried:</p>
  
  <pre><code>require 'capybara/rspec'
  require 'rspec'
  require 'selenium-webdriver'
  
  Capybara.register_driver :selenium do |app|
    Capybara::Selenium::Driver.new(app, :browser =&gt; :chrome)
  end
  </code></pre>
  
  <p><code>/home/ubuntu/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/chrome/service.rb:50:in `start': unable to connect to chromedriver http://127.0.0.1:9515 (Selenium::WebDriver::Error::WebDriverError)</code></p>
  
  <p>Is there another step required to use Chrome? I'm new with Selenium.</p>