Skip to content

Commit

Permalink
Update invalid rule test
Browse files Browse the repository at this point in the history
  • Loading branch information
dansimpson committed Oct 15, 2020
1 parent 21fcb07 commit 474add9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/test/java/io/bonsai/plugins/synonyms/RestTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ public void testInvalidSynonyms() throws IOException {
.body(getResourceStr("files/invalid_synonyms.json"))
.execute()) {
Assert.assertEquals(422, curlResponse.getHttpStatusCode());
Assert.assertTrue(
curlResponse.getContentAsString().contains("Invalid synonym rule at line 1"));
Assert.assertTrue(curlResponse.getContentAsString().contains("No rules accepted"));
}
}
}
2 changes: 1 addition & 1 deletion src/test/resources/files/invalid_synonyms.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "test",
"rules": [
"fancy,],pants,["
",=>,....,,,,,,"
]
}

0 comments on commit 474add9

Please sign in to comment.