mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-14 22:21:20 +00:00
To prepare for new feature, gather requirements for conjured items
This commit is contained in:
parent
d7bb4c9f94
commit
c07ed14265
22
php/tests/behat/feature_files/conjured-items.feature
Normal file
22
php/tests/behat/feature_files/conjured-items.feature
Normal file
@ -0,0 +1,22 @@
|
||||
Feature: Conjured items
|
||||
In order to keep track of conjured items
|
||||
As a shopkeeper
|
||||
I want to see the quality of a conjured item decrease by 2 each day
|
||||
|
||||
@wip
|
||||
Scenario: Single quality update
|
||||
Given a conjured item with a sell-in of 20 and a quality of 20
|
||||
When I update the quality
|
||||
Then the item should have a quality of 18
|
||||
|
||||
@wip
|
||||
Scenario: Quality cannot be negative
|
||||
Given a conjured item with a sell-in of 20 and a quality of 0
|
||||
When I update the quality
|
||||
Then the item should have a quality of 0
|
||||
|
||||
@wip
|
||||
Scenario: Once the sell-by date has passed, quality degrades twice as fast
|
||||
Given a conjured item with a sell-in of 0 and a quality of 20
|
||||
When I update the quality
|
||||
Then the item should have a quality of 16
|
||||
Loading…
Reference in New Issue
Block a user