diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index f03c76038..4f0b58bf7 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -1024,16 +1024,6 @@ } } -.enquiries-list { - - .enquiry { - background: white; - border-top: 1px solid $border; - padding: $line-height 0; - position: relative; - } -} - .successful { .panel { diff --git a/app/views/enquiries/index.html.erb b/app/views/enquiries/index.html.erb deleted file mode 100644 index 68e780cb5..000000000 --- a/app/views/enquiries/index.html.erb +++ /dev/null @@ -1,41 +0,0 @@ -
- -<%= t("enquiries.banner.info") %>
+<%= t("poll_questions.banner.info") %>
- <%= link_to t('poll_questions.create_enquiry'), + <%= link_to t('poll_questions.create_question'), new_admin_question_path(proposal_id: @proposal.id), class: "button hollow expanded" %>
diff --git a/spec/features/admin/poll/questions_spec.rb b/spec/features/admin/poll/questions_spec.rb index 84175f7fc..90e55107c 100644 --- a/spec/features/admin/poll/questions_spec.rb +++ b/spec/features/admin/poll/questions_spec.rb @@ -1,6 +1,6 @@ require 'rails_helper' -feature 'Admin enquiries' do +feature 'Admin poll questions' do background do login_as(create(:administrator).user) diff --git a/spec/features/polls/questions_spec.rb b/spec/features/polls/questions_spec.rb index e55ffb05d..8e6574c5f 100644 --- a/spec/features/polls/questions_spec.rb +++ b/spec/features/polls/questions_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' feature 'Poll Questions' do - scenario 'Lists enquiries from proposals before regular enquiries' do + scenario 'Lists questions from proposals before regular questions' do poll = create(:poll) normal_question = create(:poll_question, poll: poll) proposal_question = create(:poll_question, proposal: create(:proposal), poll: poll) @@ -42,7 +42,7 @@ feature 'Poll Questions' do expect(page).to_not have_link('Chewbacca') end - scenario 'Level 2 users in an enquiry for a geozone which is not theirs' do + scenario 'Level 2 users in an poll question for a geozone which is not theirs' do question = create(:poll_question, geozone_ids: [], valid_answers: 'Vader, Palpatine') login_as(create(:user, :level_two)) diff --git a/spec/features/proposals_spec.rb b/spec/features/proposals_spec.rb index 67f6ae8f6..b8be8af12 100644 --- a/spec/features/proposals_spec.rb +++ b/spec/features/proposals_spec.rb @@ -1531,7 +1531,7 @@ feature 'Successful proposals' do end end - scenario 'Successful proposals show create enquiry button to admin users' do + scenario 'Successful proposals show create question button to admin users' do successful_proposals = create_successful_proposals visit proposals_path diff --git a/spec/models/poll/partial_result_spec.rb b/spec/models/poll/partial_result_spec.rb index 0b3fea411..1d203862b 100644 --- a/spec/models/poll/partial_result_spec.rb +++ b/spec/models/poll/partial_result_spec.rb @@ -3,7 +3,7 @@ require 'rails_helper' describe Poll::PartialResult do describe "validations" do - it "validates that the answers are included in the Enquiry's list" do + it "validates that the answers are included in the Poll::Question's list" do q = create(:poll_question, valid_answers: 'One, Two, Three') expect(build(:poll_partial_result, question: q, answer: 'One')).to be_valid expect(build(:poll_partial_result, question: q, answer: 'Two')).to be_valid