mirror of
https://github.com/internetee/registry.git
synced 2025-06-12 15:44:45 +02:00
Simplify Puma config
This commit is contained in:
parent
d8acd99879
commit
42c574746c
1 changed files with 1 additions and 5 deletions
|
@ -31,10 +31,7 @@ class JavaScriptApplicationSystemTestCase < ApplicationSystemTestCase
|
||||||
Capybara::Selenium::Driver.new(app, browser: :chrome, options: options)
|
Capybara::Selenium::Driver.new(app, browser: :chrome, options: options)
|
||||||
end
|
end
|
||||||
|
|
||||||
Capybara.register_server(:silent_puma) do |app, port, _host|
|
Capybara.server = :puma, { Silent: true }
|
||||||
require 'rack/handler/puma'
|
|
||||||
Rack::Handler::Puma.run(app, Port: port, Threads: '0:2', Silent: true)
|
|
||||||
end
|
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
DatabaseCleaner.start
|
DatabaseCleaner.start
|
||||||
|
@ -42,7 +39,6 @@ class JavaScriptApplicationSystemTestCase < ApplicationSystemTestCase
|
||||||
super
|
super
|
||||||
|
|
||||||
Capybara.current_driver = :chrome
|
Capybara.current_driver = :chrome
|
||||||
Capybara.server = :silent_puma
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def teardown
|
def teardown
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue