Bug fix: the sample spec did not run

This commit is contained in:
David Vrensk 2012-12-06 15:53:43 +01:00
parent 7333fc844e
commit 9042bba0a2

View File

@ -1,13 +1,13 @@
require File.join(File.dirname(__FILE__), 'gilded_rose') require File.join(File.dirname(__FILE__), 'gilded_rose')
describe GildedRose do describe GildedRose do
describe "#update_quality" do describe "#update_quality" do
items = [Item.new("foo", 0, 0)] it "does not change the name" do
GildedRose.new().update_quality(items) items = [Item.new("foo", 0, 0)]
items[0].name.should == "fixme" GildedRose.new().update_quality(items)
end items[0].name.should == "fixme"
end
end
end end