Skip to content

Commit

Permalink
test: agrega tests para items conjurados
Browse files Browse the repository at this point in the history
  • Loading branch information
felgaete committed Aug 19, 2024
1 parent cde3747 commit 7609529
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ruby/gilded_rose_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,19 @@

expect(@items[0].quality).to eq 2
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

0 comments on commit 7609529

Please sign in to comment.