Merge pull request #9 from dvrensk/ruby-cleanup

Clean up gilded ruby
This commit is contained in:
Emily Bache 2012-12-07 01:18:47 -08:00
commit 51f547d61b
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