Skip to content

Commit

Permalink
Merge pull request huginn#1347 from dsander/increase-capybara-timeout
Browse files Browse the repository at this point in the history
Increase capybara default_max_wait_time to 60 seconds
  • Loading branch information
dsander committed Mar 14, 2016
2 parents 9556dab + 4a75ca3 commit c1b2496
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ gem 'protected_attributes', '~>1.0.8' # This must be loaded before some other ge
gem 'ace-rails-ap', '~> 2.0.1'
gem 'bootstrap-kaminari-views', '~> 0.0.3'
gem 'bundler', '>= 1.5.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'coffee-rails', '~> 4.1.1'
gem 'daemons', '~> 1.1.9'
gem 'delayed_job', '~> 4.1.0'
gem 'delayed_job_active_record', github: 'collectiveidea/delayed_job_active_record', branch: 'master'
Expand Down
10 changes: 5 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@ GEM
chronic (0.10.2)
cliver (0.3.2)
coderay (1.1.0)
coffee-rails (4.1.0)
coffee-rails (4.1.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
coffee-script (2.3.0)
railties (>= 4.0.0, < 5.1.x)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.9.1)
coffee-script-source (1.10.0)
colorize (0.7.7)
concurrent-ruby (1.0.1)
cookiejar (0.3.2)
Expand Down Expand Up @@ -585,7 +585,7 @@ DEPENDENCIES
capistrano-bundler (~> 1.1.4)
capistrano-rails (~> 1.1)
capybara-select2
coffee-rails (~> 4.1.0)
coffee-rails (~> 4.1.1)
coveralls
daemons (~> 1.1.9)
delayed_job (~> 4.1.0)
Expand Down
8 changes: 7 additions & 1 deletion spec/capybara_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
require 'capybara/rails'
require 'capybara/poltergeist'
require 'capybara-select2'

Capybara.register_driver :poltergeist do |app|
Capybara::Poltergeist::Driver.new(app, timeout: 60)
end

Capybara.javascript_driver = :poltergeist
Capybara.default_max_wait_time = 60

RSpec.configure do |config|
config.include Warden::Test::Helpers
Expand All @@ -17,4 +23,4 @@

VCR.configure do |config|
config.ignore_localhost = true
end
end

0 comments on commit c1b2496

Please sign in to comment.