diff options
author | Mathias <mathias@spray.cc> | 2011-11-09 12:43:06 +0100 |
---|---|---|
committer | Mathias <mathias@spray.cc> | 2011-11-09 12:43:06 +0100 |
commit | c14e3c5fec716d32cfd7a3d358e527c1c6b24a15 (patch) | |
tree | 2ab7dcedc4370baba6c5ef08cb7b6afa423e4f2f /src/test/scala/cc/spray/json | |
parent | 9168e6ee3fd5f2366e66206a97144562aff70993 (diff) | |
download | spray-json-c14e3c5fec716d32cfd7a3d358e527c1c6b24a15.tar.gz spray-json-c14e3c5fec716d32cfd7a3d358e527c1c6b24a15.tar.bz2 spray-json-c14e3c5fec716d32cfd7a3d358e527c1c6b24a15.zip |
Fix remaining deprecation warning
Diffstat (limited to 'src/test/scala/cc/spray/json')
-rw-r--r-- | src/test/scala/cc/spray/json/BasicFormatsSpec.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/scala/cc/spray/json/BasicFormatsSpec.scala b/src/test/scala/cc/spray/json/BasicFormatsSpec.scala index 6a8ecd3..e474707 100644 --- a/src/test/scala/cc/spray/json/BasicFormatsSpec.scala +++ b/src/test/scala/cc/spray/json/BasicFormatsSpec.scala @@ -39,7 +39,7 @@ class BasicFormatsSpec extends Specification with DefaultJsonProtocol { JsNumber(4.2f).convertTo[Float] mustEqual 4.2f } "convert a JsNull to a Float" in { - JsNull.fromJson[Float].isNaN mustEqual Float.NaN.isNaN + JsNull.convertTo[Float].isNaN mustEqual Float.NaN.isNaN } } @@ -60,7 +60,7 @@ class BasicFormatsSpec extends Specification with DefaultJsonProtocol { JsNumber(4.2).convertTo[Double] mustEqual 4.2 } "convert a JsNull to a Double" in { - JsNull.fromJson[Double].isNaN mustEqual Double.NaN.isNaN + JsNull.convertTo[Double].isNaN mustEqual Double.NaN.isNaN } } |