Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jagthedrummer committed Nov 27, 2024
1 parent f6b203f commit b696ece
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/application_system_test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b696ece

Please sign in to comment.