mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 04:12:13 +00:00
Bug fix: the sample spec did not run
This commit is contained in:
parent
7333fc844e
commit
9042bba0a2
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user