Skip to content

Commit 063e9c6

Browse files
author
Matt Swanson
committed
cleanup, stringer-rss#93
1 parent f8868b3 commit 063e9c6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/repositories/story_repository.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ def self.expand_absolute_urls(content, base_url)
5656
url = node.get_attribute(attr)
5757
unless url =~ abs_re
5858
node.set_attribute(attr, URI.join(base_url, url).to_s)
59-
URI.parse(url)
6059
end
6160
end
6261
end

spec/repositories/story_repository_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
app_require "repositories/story_repository"
44

55
describe StoryRepository do
6-
describe "#expand_absolute_urls" do
6+
describe ".expand_absolute_urls" do
77
it "preserves existing absolute urls" do
88
content = '<a href="http://foo">bar</a>'
99

@@ -35,7 +35,7 @@
3535
end
3636
end
3737

38-
describe "#extract_content" do
38+
describe ".extract_content" do
3939
let(:entry) do
4040
stub(url: "http://mdswanson.com",
4141
content: "Some test content<script></script>")

0 commit comments

Comments
 (0)