Skip to content

Commit

Permalink
Fix travis bot fails in grades controller and assignment participant …
Browse files Browse the repository at this point in the history
…specs
  • Loading branch information
ovbarve committed Dec 8, 2018
1 parent d3670f5 commit fe60d46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/controllers/grades_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

context 'when current assignment does not vary rubric by round' do
it 'calculates scores and renders grades#view page' do
allow(Asrspec specsignmentQuestionnaire).to receive(:where).with(assignment_id: 1, used_in_round: 2).and_return([])
allow(AssignmentQuestionnaire).to receive(:where).with(assignment_id: 1, used_in_round: 2).and_return([])
allow(ReviewResponseMap).to receive(:get_assessments_for).with(team).and_return([review_response])
params = {id: 1}
get :view, params
Expand Down
2 changes: 1 addition & 1 deletion spec/models/assignment_particpant_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
score_map = {max: 100, min: 100, avg: 100}
allow(AssignmentQuestionnaire).to receive(:find_by).with(assignment_id: 1, questionnaire_id: 1)
.and_return(double('AssignmentQuestionnaire', used_in_round: nil))
allow(review_questionnaire).to receive(:get_assessments_for).with(participant).and_return([response])
allow(review_questionnaire).to receive(:get_assessments_for).with(participant, false).and_return([response])
allow(Answer).to receive(:compute_scores).with(any_args).and_return(score_map)
participant.compute_assignment_score(question_hash, scores)
expect(scores[:review][:assessments]).to eq([response])
Expand Down

0 comments on commit fe60d46

Please sign in to comment.