Skip to content

Commit 0578d0a

Browse files
committed
Rename spider html module to Onigumo.Spider.HTML
1 parent 0f7f29b commit 0578d0a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/spider/html.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
defmodule Spider.HTML do
1+
defmodule Onigumo.Spider.HTML do
22
def find_links(document) do
33
Floki.parse_document!(document)
44
|> Floki.find("a")

test/spider_html_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ defmodule SpiderHtmlTest do
2121
</body>
2222
</html>)
2323

24-
describe("Spider.HTML.find_links/1") do
24+
describe("Onigumo.Spider.HTML.find_links/1") do
2525
test("find links in href attributes of 'a' tags") do
26-
links = Spider.HTML.find_links(@html)
26+
links = Onigumo.Spider.HTML.find_links(@html)
2727
assert links == @urls
2828
end
2929
end

0 commit comments

Comments
 (0)