From c8c1b18bc157b7fc32523bff386b293c6ffd549b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sat, 30 Mar 2024 02:08:49 +0100 Subject: [PATCH] Fix RSpec/LetBeforeExamples rubocop offense This was accidentally introduced in commit 64aa1ffe0. Pronto didn't detect it because the line itself was fine; the problem lied in its place within the file. --- spec/system/legislation/questions_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)