From 04d14ce501620390e5dadb9dbc6a5eeb3c45ecbb Mon Sep 17 00:00:00 2001 From: Yann Simon Date: Thu, 28 Feb 2019 18:16:07 +0100 Subject: [PATCH] better test description --- json/src/test/scala/io/sphere/json/OptionReaderSpec.scala | 2 +- .../scala/io/sphere/mongo/format/OptionMongoFormatSpec.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/json/src/test/scala/io/sphere/json/OptionReaderSpec.scala b/json/src/test/scala/io/sphere/json/OptionReaderSpec.scala index f4967647..a28a3ac1 100644 --- a/json/src/test/scala/io/sphere/json/OptionReaderSpec.scala +++ b/json/src/test/scala/io/sphere/json/OptionReaderSpec.scala @@ -68,7 +68,7 @@ class OptionReaderSpec extends WordSpec with MustMatchers with OptionValues { result mustEqual None } - "do not ignore fields if no one is expected" in { + "consider all fields if the data type does not impose any restriction" in { val json = """{ | "key1": "value1", diff --git a/mongo/src/test/scala/io/sphere/mongo/format/OptionMongoFormatSpec.scala b/mongo/src/test/scala/io/sphere/mongo/format/OptionMongoFormatSpec.scala index 3ec6fc81..f6680105 100644 --- a/mongo/src/test/scala/io/sphere/mongo/format/OptionMongoFormatSpec.scala +++ b/mongo/src/test/scala/io/sphere/mongo/format/OptionMongoFormatSpec.scala @@ -66,7 +66,7 @@ class OptionMongoFormatSpec extends WordSpec with MustMatchers with OptionValues result mustEqual None } - "do not ignore fields if no one is expected" in { + "consider all fields if the data type does not impose any restriction" in { val dbo = dbObj( "key1" -> "value1", "key2" -> "value2"