Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
benbalter committed May 25, 2015
2 parents 32019cc + 7c83620 commit 7b8d7b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
{% if post.author.email %}
<email>{{ post.author.email | xml_escape }}</email>
{% endif %}
{% if post.author.url %}
<uri>{{ post.author.url | xml_escape }}</uri>
{% if post.author.uri %}
<uri>{{ post.author.uri | xml_escape }}</uri>
{% endif %}
</author>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion spec/jekyll-feed_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
end

it "supports post author name as an object" do
expect(contents).to match /<author>\s*<name>Ben<\/name>\s*<email>ben@example.com<\/email>\s*<\/author>/
expect(contents).to match /<author>\s*<name>Ben<\/name>\s*<email>ben@example.com<\/email>\s*<uri>http:\/\/ben.balter.com<\/uri>\s*<\/author>/
end

it "supports post author name as a string" do
Expand Down

0 comments on commit 7b8d7b7

Please sign in to comment.