spec updated in order to run proper tests for further refactoring

This commit is contained in:
davidraj 2022-10-10 14:36:19 +01:00
parent e1e3c990f2
commit c90bc34dc5

View File

@ -1,13 +1,13 @@
# frozen_string_literal: true
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 "fixme"
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