diff options
author | Johannes Rudolph <johannes_rudolph@gmx.de> | 2012-05-29 16:03:11 +0200 |
---|---|---|
committer | Johannes Rudolph <johannes_rudolph@gmx.de> | 2012-05-29 16:03:11 +0200 |
commit | 5bb3c54a0cdbf99efad736fd7fb7bd83a0c8e0d9 (patch) | |
tree | 17e5c59e009d7082790d3848c0ce39c28fd6ce03 /src/test/scala | |
parent | 745cea9069c626db16f29132767355a7d3d14d2c (diff) | |
download | spray-json-5bb3c54a0cdbf99efad736fd7fb7bd83a0c8e0d9.tar.gz spray-json-5bb3c54a0cdbf99efad736fd7fb7bd83a0c8e0d9.tar.bz2 spray-json-5bb3c54a0cdbf99efad736fd7fb7bd83a0c8e0d9.zip |
change signature of Operation.apply to operate of SafeJsValue so that we can give better error messages for missing elements
Diffstat (limited to 'src/test/scala')
-rw-r--r-- | src/test/scala/cc/spray/json/JsonLensesSpec.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/scala/cc/spray/json/JsonLensesSpec.scala b/src/test/scala/cc/spray/json/JsonLensesSpec.scala index 1648690..c26537a 100644 --- a/src/test/scala/cc/spray/json/JsonLensesSpec.scala +++ b/src/test/scala/cc/spray/json/JsonLensesSpec.scala @@ -101,7 +101,7 @@ class JsonLensesSpec extends Specification { } "missing" in { val simple = JsonParser( """{"n": 12}""") - simple.update(field("z") ! updated[Int](_ + 1)) must throwAn[Exception]("Need a value to operate on") + simple.update(field("z") ! updated[Int](_ + 1)) must throwAn[Exception]("""Expected field 'z' in '{"n":12}'""") } } "set field of member" in { |