OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
ensure test fails if httpx gets an error response
Ivan Kuchina55b508c391b
diff --git a/spec/httpx_spec.rb b/spec/httpx_spec.rbindex 428f8634fb7..3ae8e9494b0 100644--- a/spec/httpx_spec.rb+++ b/spec/httpx_spec.rb@@ -19,10 +19,10 @@ RSpec.describe "HTTPX" donumber_of_requests_made = 0beginTimeout.timeout(10) do- session.post("http://localhost:#{port}")+ session.post("http://localhost:#{port}").raise_for_statusnumber_of_requests_made += 1sleep 4- session.post("http://localhost:#{port}")+ session.post("http://localhost:#{port}").raise_for_statusnumber_of_requests_made += 1endensure