ubicloud/spec/routes
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
..
api Add spec for attempting to create a PostgreSQL database with an invalid flavor 2025-08-08 01:52:14 +09:00
runtime Change all create_with_id to create 2025-08-06 01:55:51 +09:00
web Treat non-GET/POST requests as JSON requests 2025-08-08 01:52:14 +09:00
spec_helper.rb Change all create_with_id to create 2025-08-06 01:55:51 +09:00