diff --git a/app/views/debates/_debate.html.erb b/app/views/debates/_debate.html.erb
index e86136728..f31328ec9 100644
--- a/app/views/debates/_debate.html.erb
+++ b/app/views/debates/_debate.html.erb
@@ -13,7 +13,7 @@
t("debates.debate.comment"), t("debates.debate.comments")) %>
- <%= debate.description %>
+ <%= link_to debate.description, debate %>
<%= render "shared/tags", debate: debate %>
diff --git a/app/views/debates/_featured_debate.html.erb b/app/views/debates/_featured_debate.html.erb
index a90a26657..708053a19 100644
--- a/app/views/debates/_featured_debate.html.erb
+++ b/app/views/debates/_featured_debate.html.erb
@@ -12,7 +12,7 @@
t("debates.show.comment"), t("debates.show.comments")) %>
- <%= featured_debate.description %>
+ <%= link_to featured_debate.description, featured_debate %>
<%= render "shared/tags", debate: featured_debate %>
diff --git a/spec/features/debates_spec.rb b/spec/features/debates_spec.rb
index 8f46af8ba..f8b96e2ed 100644
--- a/spec/features/debates_spec.rb
+++ b/spec/features/debates_spec.rb
@@ -12,7 +12,7 @@ feature 'Debates' do
featured_debates.each do |debate|
within('#featured-debates') do
expect(page).to have_content debate.title
- expect(page).to have_content debate.description
+ expect(page).to have_css("a[href='#{debate_path(debate)}']", text: debate.description)
end
end
@@ -20,7 +20,7 @@ feature 'Debates' do
debates.each do |debate|
within('#debates') do
expect(page).to have_content debate.title
- expect(page).to have_content debate.description
+ expect(page).to have_css("a[href='#{debate_path(debate)}']", text: debate.description)
end
end
end