Skip to content

Instantly share code, notes, and snippets.

@beyondxscratch
Created May 21, 2019 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beyondxscratch/3a2a00e7e26e64a350c0b06fb4fb081e to your computer and use it in GitHub Desktop.
Save beyondxscratch/3a2a00e7e26e64a350c0b06fb4fb081e to your computer and use it in GitHub Desktop.
Feature: Profile endpoint
Scenario: creating a profile
Given path 'profiles'
And request
"""
{ "topics": [{"name": "DDD"},{"name": "Hexagonal Architecture"}],"talksFormats": ["QUICKIE","CONFERENCE"] }
"""
When method post
Then assert responseStatus == 201
And match responseHeaders['Location'] contains only (profilesUrl + userId)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment