diff --git a/spec/system/legislation/questions_spec.rb b/spec/system/legislation/questions_spec.rb index 806a65ea3..da88be9a3 100644 --- a/spec/system/legislation/questions_spec.rb +++ b/spec/system/legislation/questions_spec.rb @@ -2,8 +2,6 @@ require "rails_helper" describe "Legislation" do context "process debate page" do - it_behaves_like "notifiable in-app", :legislation_question - let(:process) do create(:legislation_process, debate_start_date: Date.current - 3.days, @@ -16,6 +14,8 @@ describe "Legislation" do create(:legislation_question, process: process, title: "Question 3", description: "Description 3") end + it_behaves_like "notifiable in-app", :legislation_question + scenario "shows question list" do visit legislation_process_path(process)