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')
describe GildedRose do
describe "#update_quality" do
items = [Item.new("foo", 0, 0)]
GildedRose.new().update_quality(items)
items[0].name.should == "fixme"
end
describe "#update_quality" do
it "does not change the name" do
items = [Item.new("foo", 0, 0)]
GildedRose.new().update_quality(items)
items[0].name.should == "fixme"
end
end
end