mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-17 19:35:06 +00:00
Bug fix: the sample spec did not run
This commit is contained in:
1 parent
7333fc844e
commit
9042bba0a2
1 file changed
+7
-7
@@ -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
|
||||||
Reference in new issue
Block a user