Merge pull request #524 from square/jwilson.0504.green_green

Fix some tests that have the wrong expected exception message
This commit is contained in:
Jesse Wilson
2018-05-04 15:49:16 -04:00
committed by GitHub

View File

@@ -162,7 +162,7 @@ class KotlinJsonAdapterTest {
jsonAdapter.fromJson("{\"a\":\"hello\"}")
fail()
} catch (expected: JsonDataException) {
assertThat(expected).hasMessage("Non-null value 'a' was null at \$")
assertThat(expected).hasMessage("Non-null value 'a' was null at \$.a")
}
}
@@ -190,7 +190,7 @@ class KotlinJsonAdapterTest {
jsonAdapter.fromJson("{\"a\":\"hello\"}")
fail()
} catch (expected: JsonDataException) {
assertThat(expected).hasMessage("Non-null value 'a' was null at \$")
assertThat(expected).hasMessage("Non-null value 'a' was null at \$.a")
}
}