From b696ece33d63328221d89083177ddbbeede79129 Mon Sep 17 00:00:00 2001 From: Jeremy Green Date: Wed, 27 Nov 2024 16:32:12 -0600 Subject: [PATCH] linter --- test/application_system_test_case.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index 41131e50d..bc4b23b14 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -35,12 +35,8 @@ Rack::Handler::Puma.run(app, Host: host, Port: port, Threads: "5:5", config_files: ["-"]) end -puts "--------------------------------" -puts ENV['TEST_ENV_NUMBER'] -puts "--------------------------------" - Capybara.server = :puma -Capybara.server_port = 3001 + ENV['TEST_ENV_NUMBER'].to_i +Capybara.server_port = 3001 + ENV["TEST_ENV_NUMBER"].to_i Capybara.app_host = "http://localhost:#{Capybara.server_port}" class ApplicationSystemTestCase < ActionDispatch::SystemTestCase @@ -80,7 +76,7 @@ def another_example_password end setup do - ENV["BASE_URL"] = "http://localhost:3001#{ENV['TEST_ENV_NUMBER'].to_i}" + ENV["BASE_URL"] = "http://localhost:#{Capybara.server_port}" Capybara.use_default_driver Capybara.reset_sessions! end