Add code to goal title

The same way it's done in UN official SDG pages.
This commit is contained in:
Javi Martín
2020-12-26 22:30:08 +01:00
parent 46c6aa7f5f
commit bec166548c
4 changed files with 11 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ describe "SDG Goals", :js do
scenario "shows the SDG and its related content" do
visit sdg_goal_path(15)
within(".sdg-goal header") { expect(page).to have_content "LIFE ON LAND" }
within(".sdg-goal header") { expect(page).to have_content "15 LIFE ON LAND" }
within ".feed-proposals" do
expect(page).to have_content "Animal farm"