mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-10 04:01:19 +00:00
test: agrega tests para items conjurados
This commit is contained in:
parent
cde3747b48
commit
7609529f8f
@ -155,5 +155,19 @@ describe GildedRose do
|
|||||||
|
|
||||||
expect(@items[0].quality).to eq 2
|
expect(@items[0].quality).to eq 2
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'no decrementa su calidad bajo 0' do
|
||||||
|
@items[0].quality = 1
|
||||||
|
|
||||||
|
@gilded.update_quality
|
||||||
|
|
||||||
|
expect(@items[0].quality).to eq 0
|
||||||
|
end
|
||||||
|
|
||||||
|
it 'decrementa sus dias para vender en 1' do
|
||||||
|
@gilded.update_quality
|
||||||
|
|
||||||
|
expect(@items[0].sell_in).to eq 9
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user