You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on the implementation of the invitation feature (#75), I wanted to resolve all the remaining offenses and coverage issues. After commits 51ee84f and 76cdcba, I was able to address all the RuboCop offenses. I also fixed the uncovered code to the best of my abilities, including the parts related to the invitation feature.
The problem lies with these. Only two files, just nine lines left.
117. end
- 118. elsif params[:commit] == 'Previous'- 119. format.html do- 120. session[:page_number] -= 1- 121. redirect_to edit_survey_response_path(@survey_response)
122. end
app/models/survey_response.rb:
90. rescue ActiveRecord::RecordNotFound
- 91. next
92. end
+ 93. answer = SurveyAnswer.where(question:, response: self).first- 94. if answer.nil?- 95. SurveyAnswer.create choice:, question:, response: self
96. else
I couldn't cover those code blocks. I'm feeling a bit burned out at the moment from staring at the code for so long, and most importantly, I'm having a hard time understanding how these work. I even considered just deleting them, so I just tried to remove that part, but rest assured, the RSpec test is bombarded with red marks.
I want to ask for help from the person who originally wrote this code. Please explain what needs to be done to cover them. I request the scrum master to investigate this matter.
The text was updated successfully, but these errors were encountered:
While working on the implementation of the invitation feature (#75), I wanted to resolve all the remaining offenses and coverage issues. After commits 51ee84f and 76cdcba, I was able to address all the RuboCop offenses. I also fixed the uncovered code to the best of my abilities, including the parts related to the invitation feature.
The problem lies with these. Only two files, just nine lines left.
app/controllers/survey_responses_controller.rb
:app/models/survey_response.rb
:I couldn't cover those code blocks. I'm feeling a bit burned out at the moment from staring at the code for so long, and most importantly, I'm having a hard time understanding how these work. I even considered just deleting them, so I just tried to remove that part, but rest assured, the RSpec test is bombarded with red marks.
I want to ask for help from the person who originally wrote this code. Please explain what needs to be done to cover them. I request the scrum master to investigate this matter.
The text was updated successfully, but these errors were encountered: