I am getting this error while building the project on Jenkins . The execution is running hassle free on my local machine . I have added these to my Gemfile .
gem 'poltergeist'
gem 'capybara'
gem 'phantomjs'
The error only occurs on jenkins. using phantomjs 2.1.1.0