GildedRose-Refactoring-Kata/ruby/spec/gilded_rose_spec.rb
2020-11-04 13:43:50 +00:00

14 lines
293 B
Ruby

require File.join(File.dirname(__FILE__), 'gilded_rose')
describe GildedRose do
describe "#update_quality" do
it "does not change the name" do
items = [Item.new("foo", 0, 0)]
GildedRose.new(items).update_quality()
expect(items[0].name).to eq "foo"
end
end
end