mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-11 20:02:09 +00:00
14 lines
352 B
Scala
14 lines
352 B
Scala
package com.gildedrose
|
|
|
|
import org.scalatest.flatspec.AnyFlatSpec
|
|
import org.scalatest.matchers.should.Matchers
|
|
|
|
class GildedRoseTest extends AnyFlatSpec with Matchers {
|
|
it should "foo" in {
|
|
val items = Array[Item](Item("foo", 0, 0))
|
|
val app = new GildedRose(items)
|
|
app.updateQuality()
|
|
app.items(0).name should equal("fixme")
|
|
}
|
|
}
|