From b89c358d03c45cdfc3ba2c769133475cd293213a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 6 Sep 2021 14:40:42 +0200 Subject: [PATCH] Remove comments related to code from Madrid CONSUL doesn't implement blank votes via web; the comment was based on the code used in Madrid, which was actually very complex. And the concept of "all city" was also specific to Madrid. Poll questions aren't associated to a geozone, so the geozone will depend on the poll they're associated to. --- spec/models/poll/stats_spec.rb | 4 ---- spec/system/admin/poll/questions_spec.rb | 2 -- 2 files changed, 6 deletions(-) diff --git a/spec/models/poll/stats_spec.rb b/spec/models/poll/stats_spec.rb index 166a92569..abe080fe8 100644 --- a/spec/models/poll/stats_spec.rb +++ b/spec/models/poll/stats_spec.rb @@ -56,10 +56,6 @@ describe Poll::Stats do end end - describe "#total_web_white" do - pending "Too complex to test" - end - describe "#total_web_null" do it "returns 0" do expect(stats.total_web_null).to eq(0) diff --git a/spec/system/admin/poll/questions_spec.rb b/spec/system/admin/poll/questions_spec.rb index 7dc1c49a7..6819d520d 100644 --- a/spec/system/admin/poll/questions_spec.rb +++ b/spec/system/admin/poll/questions_spec.rb @@ -151,8 +151,6 @@ describe "Admin poll questions", :admin do expect(page).to have_content(question2.title) end - pending "Mark all city by default when creating a poll question from a successful proposal" - context "Poll select box" do scenario "translates the poll name in options" do poll = create(:poll, name_en: "Name in English", name_es: "Nombre en EspaƱol")