You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.
Given I'm an authenticated user of any type
When I send a PATCH request to /questions/{questionId} with the updatable input and the question was created by me
I expect that question to be updated
Given I'm an authenticated user of any type
When I send a PATCH request to /questions/{questionId} with the updatable input and the question was not created by me
I expect to not be able to update that question
Updatable input
title: the title of the question. Must be filled.
slug: the URL friendly identifier, automatically generated based on the title. Must be unique.
description: the question itself.
updated_at: timestamp with timezone. Must be automatically updated with the current timestamp of the update action.
Scenario
Given I'm an authenticated user of any type
When I send a PATCH request to /questions/{questionId} with the updatable input and the question was created by me
I expect that question to be updated
Given I'm an authenticated user of any type
When I send a PATCH request to /questions/{questionId} with the updatable input and the question was not created by me
I expect to not be able to update that question
Updatable input
title
: the title of the question. Must be filled.slug
: the URL friendly identifier, automatically generated based on the title. Must be unique.description
: the question itself.updated_at
: timestamp with timezone. Must be automatically updated with the current timestamp of the update action.Additional requirements
This builds on the features of #25.
The text was updated successfully, but these errors were encountered: