GildedRose-Refactoring-Kata/ruby/spec/gilded_rose_tests.rb

14 lines
308 B
Ruby

# rubocop:disable all
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
# rubocop:enable all