This is faster and will enable us to run integration tests on the
build server.
PhantomJS (http://phantomjs.org/) has to be installed in the $PATH for
this to work.
gem 'rvm-capistrano'
gem 'selenium-webdriver'
gem 'capybara'
+ gem 'poltergeist'
end
gem 'jquery-rails'
xpath (~> 2.0)
childprocess (0.5.1)
ffi (~> 1.0, >= 1.0.11)
+ cliver (0.3.2)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.0)
actionpack
activesupport
rails (>= 3.0.0)
+ poltergeist (1.5.0)
+ capybara (~> 2.1)
+ cliver (~> 0.3.1)
+ multi_json (~> 1.0)
+ websocket-driver (>= 0.2.0)
polyglot (0.3.3)
rack (1.4.5)
rack-cache (1.2)
execjs (>= 0.3.0)
json (>= 1.8.0)
websocket (1.0.7)
+ websocket-driver (0.3.2)
xpath (2.0.0)
nokogiri (~> 1.3)
oj
passenger
piwik_analytics
+ poltergeist
rails (~> 3.2.0)
rvm-capistrano
sass
require 'test_helper'
require 'capybara/rails'
+require 'capybara/poltergeist'
require 'uri'
require 'yaml'
end
def _run(args=[])
+ Capybara.javascript_driver = :poltergeist
server_pid = Dir.chdir($ARV_API_SERVER_DIR) do |apidir|
_system('bundle', 'exec', 'rake', 'db:test:load')
_system('bundle', 'exec', 'rake', 'db:fixtures:load')