Add SDG content section

This commit is contained in:
Javi Martín
2020-11-11 13:16:37 +01:00
parent 2b6c9914dd
commit a42cb050a7
21 changed files with 166 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
require "rails_helper"
describe "Goals", :js do
before { login_as(create(:administrator).user) }
describe "Index" do
scenario "Visit the index" do
SDG::Goal.where(code: "1").first_or_create!
visit sdg_management_root_path
within("#side_menu") do
click_link "Goals and Targets"
end
expect(page).to have_title "SDG content - Goals"
within("table") { expect(page).to have_content "No Poverty" }
end
end
end