We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 035a6e2 commit e9cbc2fCopy full SHA for e9cbc2f
2 files changed
lib/jola_dev_web/controllers/rss_controller.ex
@@ -6,6 +6,7 @@ defmodule JolaDevWeb.RssController do
6
7
conn
8
|> put_resp_content_type("application/rss+xml")
9
+ |> put_resp_header("x-robots-tag", "noindex")
10
|> render(:index, posts: posts)
11
end
12
test/jola_dev/blog_test.exs
@@ -7,7 +7,7 @@ defmodule JolaDev.BlogTest do
posts = Blog.all_posts()
assert is_list(posts)
- assert posts != []
+ assert [_ | _] = posts
# Verify posts are sorted by date in descending order
13
dates = Enum.map(posts, & &1.date)
@@ -20,7 +20,7 @@ defmodule JolaDev.BlogTest do
20
tags = Blog.all_tags()
21
22
assert is_list(tags)
23
- assert tags != []
+ assert [_ | _] = tags
24
assert tags == Enum.uniq(tags)
25
assert tags == Enum.sort(tags)
26
0 commit comments