Skip to content

Commit

Permalink
Test for empty title
Browse files Browse the repository at this point in the history
  • Loading branch information
pathawks committed Mar 21, 2016
1 parent 031f644 commit 83aecf4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions spec/jekyll-feed_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,22 @@
expected = '<link type="application/atom+xml" rel="alternate" href="http://example.org/feed.xml" title="My awesome site" />'
expect(index).to include(expected)
end

context "blank site name" do
let(:config) do
Jekyll.configuration({
"source" => source_dir,
"destination" => dest_dir,
"url" => "http://example.org"
})
end

it "renders the feed meta" do
index = File.read(dest_dir("index.html"))
expected = '<link type="application/atom+xml" rel="alternate" href="http://example.org/feed.xml" />'
expect(index).to include(expected)
end
end
end

context "changing the feed path" do
Expand Down

0 comments on commit 83aecf4

Please sign in to comment.