Last active
October 26, 2015 19:20
-
-
Save holderbaum/32d1c2078c1ef77f22ca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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