mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-16 19:05:05 +00:00
added normal unittest version of ruby test
This commit is contained in:
1 parent
e103796367
commit
e583b8461f
1 file changed
+12
@@ -0,0 +1,12 @@
|
|||||||
|
require File.join(File.dirname(__FILE__), 'gilded_rose')
|
||||||
|
require 'test/unit'
|
||||||
|
|
||||||
|
class TestUntitled < Test::Unit::TestCase
|
||||||
|
|
||||||
|
def test_foo
|
||||||
|
items = [Item.new("foo", 0, 0)]
|
||||||
|
GildedRose.new(items).update_quality()
|
||||||
|
assert_equal items[0].name, "fixme"
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
Reference in new issue
Block a user