mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 18:52:06 +00:00
Set up Reqnroll for BDD testing
This commit is contained in:
10
src/Core/API/API.Specs/Features/NotFound.feature
Normal file
10
src/Core/API/API.Specs/Features/NotFound.feature
Normal file
@@ -0,0 +1,10 @@
|
||||
Feature: NotFound API
|
||||
As a client of the API
|
||||
I want consistent 404 responses
|
||||
So that consumers can handle missing routes
|
||||
|
||||
Scenario: GET error 404 returns NotFound message
|
||||
Given the API is running
|
||||
When I GET "/error/404"
|
||||
Then the response status code should be 404
|
||||
And the response JSON should have "message" equal "Route not found."
|
||||
Reference in New Issue
Block a user