ubicloud/spec/routes/web
Jeremy Evans 711ee84c35 Treat non-GET/POST requests as JSON requests
These requests cannot be submitted directly by browsers, only via
javascript, and our javascript always uses JSON format for them.

I'm fairly sure treating these as HTML requests, and showing an
error HTML page, breaks the javascript code handling the request.

Fix one case in the specs that expected a flash notice after
javascript failure, which I'm guessing didn't actually work as
desired in a browser executing javascript.

This also allows removal of some no-longer-reachable code.
2025-08-08 01:52:14 +09:00
..
project Treat non-GET/POST requests as JSON requests 2025-08-08 01:52:14 +09:00
webhook Use create_with_id in the specs 2025-08-07 02:13:08 +09:00
access_control_spec.rb Use handle_validation_failure to handle attempts to modify Admin subject tag 2025-08-08 01:52:14 +09:00
account_spec.rb Use HTTP header instead of meta tag for OTP lockout refresh 2025-08-01 05:23:15 +09:00
auth_spec.rb Change all create_with_id to create 2025-08-06 01:55:51 +09:00
clover_web_spec.rb Use correct params typecasting when handling validation failures 2025-08-08 01:52:14 +09:00
firewall_spec.rb Use handle_validation_failure in the firewall attach/detach subnet route 2025-08-08 01:52:14 +09:00
github_spec.rb Change all create_with_id to create 2025-08-06 01:55:51 +09:00
inference_api_key_spec.rb Disable Lint/UnderscorePrefixedVariableName 2025-03-27 12:34:37 +03:00
inference_endpoint_spec.rb Change all create_with_id to create 2025-08-06 01:55:51 +09:00
inference_playground_spec.rb Change all create_with_id to create 2025-08-06 01:55:51 +09:00
kubernetes_cluster_spec.rb Change all create_with_id to create 2025-08-06 01:55:51 +09:00
load_balancer_spec.rb Avoid the use of serializers for the load balancer show template 2025-08-08 01:52:14 +09:00
private_location_spec.rb Change all create_with_id to create 2025-08-06 01:55:51 +09:00
private_subnet_spec.rb Use normal HTML form submission for delete button with POST method 2025-08-08 01:52:14 +09:00
project_spec.rb Use handle_validation_failure earlier in project create route 2025-08-08 01:52:14 +09:00
spec_helper.rb Switch to multi phase login 2025-07-09 04:32:44 +09:00
token_spec.rb Change all create_with_id to create 2025-08-06 01:55:51 +09:00
vm_spec.rb Use request.POST as fallback in cases where flash["old"] is not set 2025-08-08 01:52:14 +09:00