Skip to content

Commit bd540f3

Browse files
committed
DA - fix failing spec
fixes CNVS-16185 tes plan: - specs pass Change-Id: I21544421a00ea4508c38821d1f6cc5cc77854301 Reviewed-on: https://gerrit.instructure.com/42495 Reviewed-by: Mike Nomitch <mnomitch@instructure.com> Product-Review: Bryan Madsen <bryan@instructure.com> QA-Review: Bryan Madsen <bryan@instructure.com> Tested-by: Jenkins <jenkins@instructure.com>
1 parent 8f9c47e commit bd540f3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spec/models/broadcast_policies/quiz_submission_policy_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def wont_send_when
9494
specify { wont_send_when { quiz.stubs(:deleted?).returns true } }
9595
specify { wont_send_when { submission.stubs(:graded_at).returns nil }}
9696
specify { wont_send_when { submission.stubs(:pending_review?).returns false }}
97-
specify { wont_send_when { submission.stubs(:user_has_visibility).returns false }}
97+
specify { wont_send_when { QuizSubmissionPolicy.any_instance.stubs(:user_has_visibility?).returns(false) }}
9898
end
9999

100100

@@ -118,7 +118,7 @@ def wont_send_when
118118
specify { wont_send_when { course.stubs(:available?).returns false} }
119119
specify { wont_send_when { quiz.stubs(:deleted?).returns true } }
120120
specify { wont_send_when { submission.stubs(:graded_at).returns nil }}
121-
specify { wont_send_when { submission.stubs(:user_has_visibility).returns false }}
121+
specify { wont_send_when { QuizSubmissionPolicy.any_instance.stubs(:user_has_visibility?).returns(false) }}
122122

123123
specify do
124124
wont_send_when do

0 commit comments

Comments
 (0)