mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 22:41:30 +00:00
add tests for sulfuras input
This commit is contained in:
parent
39ff5fee08
commit
f7556aecc0
@ -2,6 +2,7 @@ require 'gilded_rose'
|
||||
|
||||
describe GildedRose do
|
||||
let(:potato) { Item.new('potato', 15, 2)}
|
||||
let(:sulfarus) { Item.new('Sulfuras, Hand of Ragnaros', 50, 80) }
|
||||
describe "#update_quality" do
|
||||
it "does not change the name" do
|
||||
items = [Item.new("foo", 0, 0)]
|
||||
@ -47,6 +48,14 @@ let(:potato) { Item.new('potato', 15, 2)}
|
||||
expect(items.first.quality).to eq 50
|
||||
end
|
||||
end
|
||||
|
||||
describe 'Sulfuras input' do
|
||||
it 'does not change' do
|
||||
items = [sulfarus]
|
||||
GildedRose.update_quality(items)
|
||||
expect(items[0]).to eq sulfarus
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user