mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-16 06:51:27 +00:00
got taken on to zoom call with peer group, unsure whats changed but rspec still passes
This commit is contained in:
parent
6c85b130e5
commit
7a8792f64f
@ -11,7 +11,7 @@ class GildedRose
|
|||||||
update_normal_quality(item) if !sulfuras?(item)
|
update_normal_quality(item) if !sulfuras?(item)
|
||||||
|
|
||||||
else
|
else
|
||||||
|
# start of block for brie and backstage quality logic
|
||||||
if item.quality < 50
|
if item.quality < 50
|
||||||
item.quality = item.quality + 1
|
item.quality = item.quality + 1
|
||||||
if item.name.downcase.match /backstage/
|
if item.name.downcase.match /backstage/
|
||||||
@ -27,11 +27,16 @@ class GildedRose
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
# end of block for brie and backstage quality logic
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# start of block that reduces sell in
|
||||||
if !sulfuras?(item)
|
if !sulfuras?(item)
|
||||||
item.sell_in = item.sell_in - 1
|
item.sell_in = item.sell_in - 1
|
||||||
end
|
end
|
||||||
|
# end of block that reduces sell in
|
||||||
|
|
||||||
|
|
||||||
if item.sell_in < 0
|
if item.sell_in < 0
|
||||||
if item.name != "Aged Brie"
|
if item.name != "Aged Brie"
|
||||||
if !item.name.downcase.match /backstage/
|
if !item.name.downcase.match /backstage/
|
||||||
@ -50,7 +55,6 @@ class GildedRose
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
items
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.update_normal_quality(item)
|
def self.update_normal_quality(item)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user