In SpyReader, store entire strings read, not individual chunks

Makes assertions easier to write. We don't need to assert
that the strings were read chunk by chunk.
This commit is contained in:
Max Brunsfeld 2014-03-18 13:23:00 -07:00
parent fbb9b24d7b
commit a3a7546450
3 changed files with 5 additions and 8 deletions

View file

@ -33,12 +33,8 @@ describe("parsing", [&]() {
});
it("reads the entire input", [&]() {
AssertThat(reader->chunks_read, Equals(vector<string>({
"{ \"ke",
"y\": [",
"1, 2]",
" }",
""
AssertThat(reader->strings_read, Equals(vector<string>({
"{ \"key\": [1, 2] }"
})));
});