diff --git a/lib/jekyll-feed/feed.xml b/lib/jekyll-feed/feed.xml
index 9c0dfcb6..4d4fd16d 100644
--- a/lib/jekyll-feed/feed.xml
+++ b/lib/jekyll-feed/feed.xml
@@ -89,6 +89,7 @@
{% assign post_image = post_image | absolute_url %}
{% endunless %}
+
{% endif %}
{% endfor %}
diff --git a/spec/jekyll-feed_spec.rb b/spec/jekyll-feed_spec.rb
index 7b710fd6..9dce5cea 100644
--- a/spec/jekyll-feed_spec.rb
+++ b/spec/jekyll-feed_spec.rb
@@ -92,10 +92,22 @@
expect(contents).not_to match "Liquid is not rendered."
end
- it "includes the item image" do
- expect(contents).to include('')
- expect(contents).to include('')
- expect(contents).to include('')
+ context "images" do
+ let(:image1) { 'http://example.org/image.png' }
+ let(:image2) { 'https://cdn.example.org/absolute.png?h=188&w=250' }
+ let(:image3) { 'http://example.org/object-image.png' }
+
+ it "includes the item image" do
+ expect(contents).to include(%())
+ expect(contents).to include(%())
+ expect(contents).to include(%())
+ end
+
+ it "included media content for mail templates (Mailchimp)" do
+ expect(contents).to include(%())
+ expect(contents).to include(%())
+ expect(contents).to include(%())
+ end
end
context "parsing" do