File obs-server-2.9-0036-webui-ci-Configure-Capybara-with-webrick.patch of Package obs-server
From c404c212cbdc7a3675b39f3efee5be59b6a2eb88 Mon Sep 17 00:00:00 2001
From: Eduardo Navarro <enavarro@suse.com>
Date: Mon, 14 May 2018 13:16:57 +0200
Subject: [PATCH] [webui][ci] Configure Capybara with webrick
Configure Capybara with webrick to be able to update
from version 2.18.0 to 3.1.0.
Co-authored-by: David Kang <dkang@suse.com>
---
src/api/spec/support/capybara.rb | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/api/spec/support/capybara.rb b/src/api/spec/support/capybara.rb
index 64b795e1ba..ae40cdc3f3 100644
--- a/src/api/spec/support/capybara.rb
+++ b/src/api/spec/support/capybara.rb
@@ -2,6 +2,7 @@ require 'capybara/poltergeist'
Capybara.default_max_wait_time = 6
Capybara.save_path = Rails.root.join('tmp', 'capybara')
+Capybara.server = :webrick
Capybara.register_driver :poltergeist do |app|
Capybara::Poltergeist::Driver.new(app, debug: false, timeout: 30)
--
2.20.1