summaryrefslogtreecommitdiff
path: root/src/test/scala/cc/spray/json/ReadmeSpec.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/scala/cc/spray/json/ReadmeSpec.scala')
-rw-r--r--src/test/scala/cc/spray/json/ReadmeSpec.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/scala/cc/spray/json/ReadmeSpec.scala b/src/test/scala/cc/spray/json/ReadmeSpec.scala
index 7e1d246..d60aa69 100644
--- a/src/test/scala/cc/spray/json/ReadmeSpec.scala
+++ b/src/test/scala/cc/spray/json/ReadmeSpec.scala
@@ -24,8 +24,8 @@ class ReadmeSpec extends Specification {
"behave as expected" in {
import DefaultJsonProtocol._
- val json = """{ "some": "JSON source" }"""
- val jsonAst = JsonParser(json)
+ val source = """{ "some": "JSON source" }"""
+ val jsonAst = source.asJson
jsonAst mustEqual JsObject("some" -> JsString("JSON source"))
val json2 = PrettyPrinter(jsonAst)