summaryrefslogtreecommitdiff
path: root/src/test/scala
diff options
context:
space:
mode:
authorJohannes Rudolph <johannes.rudolph@gmail.com>2013-05-29 14:09:01 +0200
committerJohannes Rudolph <johannes.rudolph@gmail.com>2013-05-29 14:09:01 +0200
commit90b63f86c31d0379f53578f9d7c5d0778b7ed4d7 (patch)
tree8cca1db7ff51838f00f4cb374ed16a399bcbfe09 /src/test/scala
parentc80dfc25c25a63da02ad4819988a19a4b5656652 (diff)
downloadspray-json-90b63f86c31d0379f53578f9d7c5d0778b7ed4d7.tar.gz
spray-json-90b63f86c31d0379f53578f9d7c5d0778b7ed4d7.tar.bz2
spray-json-90b63f86c31d0379f53578f9d7c5d0778b7ed4d7.zip
wrap exceptions so that the actual stack trace doesn't get lost
Diffstat (limited to 'src/test/scala')
-rw-r--r--src/test/scala/cc/spray/json/lenses/JsonLensesSpec.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/scala/cc/spray/json/lenses/JsonLensesSpec.scala b/src/test/scala/cc/spray/json/lenses/JsonLensesSpec.scala
index d8ba767..118f47e 100644
--- a/src/test/scala/cc/spray/json/lenses/JsonLensesSpec.scala
+++ b/src/test/scala/cc/spray/json/lenses/JsonLensesSpec.scala
@@ -111,7 +111,7 @@ class JsonLensesSpec extends Specification with SpecHelpers {
"""{"n": 12}""" update (n ! modify[Int](_ + 1)) must be_json( """{"n": 13}""")
}
"wrong type" in {
- """{"n": 12}""" update (n ! modify[String](_ + "test")) must throwA[DeserializationException]("Expected String as JsString, but got 12")
+ """{"n": 12}""" update (n ! modify[String](_ + "test")) must throwA[RuntimeException]("spray.json.DeserializationException: Expected String as JsString, but got 12")
}
"missing" in {
"""{"n": 12}""" update (field("z") ! modify[Int](_ + 1)) must throwAn[Exception]( """Expected field 'z' in '{"n":12}'""")