diff --git a/activeweb-testing/src/main/java/org/javalite/activeweb/RequestSpecHelper.java b/activeweb-testing/src/main/java/org/javalite/activeweb/RequestSpecHelper.java index 7afedd8..8894f3a 100644 --- a/activeweb-testing/src/main/java/org/javalite/activeweb/RequestSpecHelper.java +++ b/activeweb-testing/src/main/java/org/javalite/activeweb/RequestSpecHelper.java @@ -353,8 +353,7 @@ protected String cookieValue(String name){ * @return contents of selected element as text. */ protected String text(String cssQuery){ - Document doc = Jsoup.parse(responseContent().replace("'", "\"")); //TODO: this replacement can be removed - // when this PL is accepted: https://github.com/jhy/jsoup/pull/655 and a new JSoup version released + Document doc = Jsoup.parse(responseContent()); Elements elements = doc.select(cssQuery); if(elements.isEmpty()){ return null; diff --git a/pom.xml b/pom.xml index ab854c6..59b3c03 100644 --- a/pom.xml +++ b/pom.xml @@ -36,7 +36,7 @@ - 2.1 + 2.2 1.7.0 @@ -193,7 +193,7 @@ org.jsoup jsoup - 1.8.3 + 1.11.3