1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-08-11 18:44:09 +02:00

adding behat for feature testing

This commit is contained in:
Mikael Roos
2016-06-03 11:44:27 +02:00
parent 3d2c74e9df
commit fbaf05d0d4
14 changed files with 2963 additions and 86 deletions

13
features/src.feature Normal file
View File

@@ -0,0 +1,13 @@
Feature: src
Display an image by selecting its source.
Scenario: Source is not a valid image name
Given Set src "NO_IMAGE"
When Get headers for image
Then Returns status code "404"
Scenario: Get only source image
Given Set src "test_100x100.png"
When Get image
Then Returns status code "200"
And Compares to image "test_100x100.png"