Merge branch 'master' of github.com:emilybache/Refactoring-Katas

This commit is contained in:
emilybache 2012-12-07 19:10:31 +01:00
commit afc37306a8
2 changed files with 64 additions and 66 deletions

View File

@ -63,5 +63,3 @@ class Item
"#{@name}, #{@sell_in}, #{@quality}"
end
end

View File

@ -1,13 +1,13 @@
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().update_quality(items)
items[0].name.should == "fixme"
end
end
end