Skip to content

Commit

Permalink
removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Apr 24, 2024
1 parent 01911ae commit 9a0f47f
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions spec/helpers/questionnaire_helper_spec.rb
Expand Up @@ -46,35 +46,4 @@
end
end
end

# describe '.update_questionnaire_questions' do
# let(:params) { { question: { '1' => { body: 'Updated body' } } } }
# let(:question) { double('Question') }

# before do
# allow(Question).to receive(:find).and_return(question)
# allow(question).to receive(:save)
# end

# context 'when params[:question] is not nil' do
# it 'updates attributes of questionnaire questions based on form data' do
# helper.update_questionnaire_questions
# expect(question).to have_received(:save)
# end

# it 'does not modify unchanged attributes' do
# allow(question).to receive(:title).and_return('Original title')
# helper.update_questionnaire_questions
# expect(question).not_to have_received(:title=)
# end
# end

# context 'when params[:question] is nil' do
# it 'returns without making any changes' do
# allow(helper).to receive(:params).and_return(nil)
# helper.update_questionnaire_questions
# expect(question).not_to have_received(:save)
# end
# end
# end
end

0 comments on commit 9a0f47f

Please sign in to comment.