The test below fails for 0.7.1. The ouput of write(Default()) is {}. Is there a workaround?
class UpickleSpec extends WordSpec with Matchers {
"UpickleSpec" should {
"handle default values" in {
write(Default()).contains("value") shouldBe true
}
}
case class Default(value: Int = 321)
object Default {
implicit val RW: RW[Default] = macroRW
}
}
Hi,
The test below fails for 0.7.1. The ouput of
write(Default())
is{}
. Is there a workaround?ID: 254 Original Author: jCalamari