From deebe38f60d175967247730ba0fcbda7e23f4761 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Sat, 27 Dec 2025 01:41:19 +0900 Subject: [PATCH] Let normal methods not be let Hoping this fix to fix the random CI failures on this file... --- spec/system/proposal_spec.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spec/system/proposal_spec.rb b/spec/system/proposal_spec.rb index 5fd2376e7..b89105c51 100644 --- a/spec/system/proposal_spec.rb +++ b/spec/system/proposal_spec.rb @@ -7,9 +7,11 @@ let!(:session_format) { create(:session_format, name: 'Only format')} let(:session_format2) { create(:session_format, name: '2nd format')} - let(:go_to_new_proposal) { visit new_event_proposal_path(event) } + def go_to_new_proposal + visit new_event_proposal_path(event) + end - let(:create_proposal) do + def create_proposal fill_in 'Title', with: "General Principles Derived by Magic from My Personal Experience" fill_in 'Abstract', with: "Because certain things happened to me, they will happen in just the same manner to everyone." fill_in 'proposal_speakers_attributes_0_bio', with: "I am awesome." @@ -19,7 +21,7 @@ click_button 'Submit' end - let(:create_invalid_proposal) do + def create_invalid_proposal fill_in 'proposal_speakers_attributes_0_bio', with: "I am a great speaker!." fill_in 'Pitch', with: "You live but once; you might as well be amusing. - Coco Chanel" fill_in 'Details', with: "Plans are nothing; planning is everything. - Dwight D. Eisenhower"