title: Running selenium tests in ruby with Jenkins
body: <p>I'm trying to set up CI on my local machine running on Mac. To do so I use Xubuntu virtual machine, Jenkins, and some simple selenium tests. <a href="https://github.com/brbrr/ruby-selenium" rel="nofollow">tests on github</a></p>
  
  <p>I get fresh install of Xubuntu, where I install Jenkins using official manual. 
  In Jenkins I installed some plugins(git, ruby, rake, rbenv). 
  In job config I use rbenv wrapper(2.1.0) with ignorance of os versions, also I use this gemlist:</p>
  
  <pre><code>bundler,rake,rspec,selenium-webdriver,capybara 
  </code></pre>
  
  <p>and running that job with </p>
  
  <pre><code>rspec spec
  </code></pre>
  
  <p>And when I run this job I recieve something like that for every test:</p>
  
  <blockquote>
    <p><em>Selenium::WebDriver::Error::WebDriverError:
           unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055)</em></p>
  </blockquote>
  
  <p>full output <a href="http://pastebin.com/vfR5kbTb" rel="nofollow">is here</a></p>
  
  <p>it looks like jenkins user have no access to display to run/see firefox. 
  Anyone know how to make it work?</p>