summaryrefslogtreecommitdiff
path: root/src/test/scala/cc/spray/json/ReadmeSpec.scala
diff options
context:
space:
mode:
authorMathias <mathias@spray.cc>2011-11-09 11:42:25 +0100
committerMathias <mathias@spray.cc>2011-11-09 12:40:16 +0100
commit6cbaa4c1782bcb4060af9f8ef2fd72e737f7982a (patch)
tree32039efb3097ff16686819806da842539185d27f /src/test/scala/cc/spray/json/ReadmeSpec.scala
parent9cda445514efe7700544e2b121c2258a69b9b207 (diff)
downloadspray-json-6cbaa4c1782bcb4060af9f8ef2fd72e737f7982a.tar.gz
spray-json-6cbaa4c1782bcb4060af9f8ef2fd72e737f7982a.tar.bz2
spray-json-6cbaa4c1782bcb4060af9f8ef2fd72e737f7982a.zip
Fix #6 (rename JsValue:fromJson to 'convertTo', add .prettyPrint and .compactPrint
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 843d1fc..1a30d39 100644
--- a/src/test/scala/cc/spray/json/ReadmeSpec.scala
+++ b/src/test/scala/cc/spray/json/ReadmeSpec.scala
@@ -33,7 +33,7 @@ class ReadmeSpec extends Specification {
import MyJsonProtocol._
val json = Color("CadetBlue", 95, 158, 160).toJson
- val color = json.fromJson[Color]
+ val color = json.convertTo[Color]
color mustEqual Color("CadetBlue", 95, 158, 160)
}
@@ -57,7 +57,7 @@ class ReadmeSpec extends Specification {
import MyJsonProtocol._
val json = Color("CadetBlue", 95, 158, 160).toJson
- val color = json.fromJson[Color]
+ val color = json.convertTo[Color]
color mustEqual Color("CadetBlue", 95, 158, 160)
}