Skip to content

Commit

Permalink
#387 Remove double quote hack from RequestSpecHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
ipolevoy committed Aug 29, 2018
1 parent 2a4520d commit 5cc93df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</modules>

<properties>
<activejdbc.version>2.1</activejdbc.version>
<activejdbc.version>2.2</activejdbc.version>
<slf4j.version>1.7.0</slf4j.version> <!--//TODO: replace with latest version when this is fixed: http://jira.qos.ch/browse/SLF4J-389-->
</properties>

Expand Down Expand Up @@ -193,7 +193,7 @@
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.8.3</version>
<version>1.11.3</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down

0 comments on commit 5cc93df

Please sign in to comment.