From df36b05cfca424fde670db919963c14bb13d2b03 Mon Sep 17 00:00:00 2001 From: drcarrasco Date: Mon, 5 Aug 2024 10:48:09 -0400 Subject: [PATCH] =?UTF-8?q?test:=20sulfuras=20no=20cambia=20los=20d=C3=ADa?= =?UTF-8?q?s=20para=20vender?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruby/gilded_rose_spec.rb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ruby/gilded_rose_spec.rb b/ruby/gilded_rose_spec.rb index 76e49c37..b1ae7fe0 100644 --- a/ruby/gilded_rose_spec.rb +++ b/ruby/gilded_rose_spec.rb @@ -60,9 +60,21 @@ describe GildedRose do end context 'para items Sulfuras' do + before do + ## Arrange + @items = [Item.new("Sulfuras, Hand of Ragnaros", 10, 2)] + @gilded = GildedRose.new(@items) + end + it 'no cambia su calidad' - it 'no cambia los dias para venderlo' + it 'no cambia los dias para venderlo' do + @items[0].sell_in = 10 + + @gilded.update_quality() + + expect(@items[0].sell_in).to eq 10 + end end context 'para items Backstage Pass' do