it 'returns nil and changes @has_errors value to true since questionnaire_weight validation fails' do
          allow(aq_attributes1).to receive(:[]).with(:questionnaire_weight).and_return(50)
          allow(aq_attributes2).to receive(:[]).with(:questionnaire_weight).and_return(40)
          expect(assignment_form.update_assignment_questionnaires(attributes)).to eq(nil)
          expect(assignment_form.instance_variable_get(:@has_errors)).to be true