Skip to content

Instantly share code, notes, and snippets.

@holderbaum
Last active October 26, 2015 19:20
Show Gist options
  • Save holderbaum/32d1c2078c1ef77f22ca to your computer and use it in GitHub Desktop.
Save holderbaum/32d1c2078c1ef77f22ca to your computer and use it in GitHub Desktop.
Feature: Serve Image
The service should return placholder of requested size and category.
Default size and default category should be used when either of them
is not provided.
Scenario: Serve image without any parameter
Given user wants a placeholder
When he requests the placeholder
Then an image is returned
And it is a default image
And it has a default size
Scenario: Serve default size with category
Given a user wants a placeholder
And he does specify a category A
When he requests the placeholder
Then an image is returned
And it is an image from category A
And it has a default size
# ....
Scenario: Serve default category
Given user requests a placeholder with a given size
When he doesn't specifie category
Then return default image with a default category and given size
Scenario: Unsuccessful request
Given user requests a placeholder with a given category
When the category doesn't exist
Then return error message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment