Skip to content

Commit

Permalink
Tweak fake url for creating page from string
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemcc committed Jun 5, 2014
1 parent 0322f98 commit e10ede8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/yokogiri/core.clj
Expand Up @@ -144,10 +144,10 @@
**Usage:**
user> (create-page \"<html><body><a href=\\\"http://example.com\\\">Link</a></body></html>\")
;=> #<HtmlPage HtmlPage(file://fakeurl.com/)@478170219>"
;=> #<HtmlPage HtmlPage(file://fake-response-url)@478170219>"
[xml]

(let [url (java.net.URL. "file://fakeurl.com")
(let [url (io/as-url "file://fake-response-url")
response (StringWebResponse. xml url)]
(HTMLParser/parseHtml response (.getCurrentWindow (WebClient.)))))

Expand Down

0 comments on commit e10ede8

Please sign in to comment.