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
copy rubrics associated with assignment even when not selected
Previously rubrics used by an assignment wouldn't copy unless
the rubric was selected. This makes it so that an assignment
will always bring its rubric when copied.
This also copies the two rubric properties you can select
when adding a rubric to an assignment.
Test Plan:
* Create an assignment with a rubric. Mark the rubric to be used for grading
* Copy the course and don't select the rubric to be copied
* In the new course the rubric should be there, and should be used for grading
closes #8474 #8475
Change-Id: I3c117c10c159fed2d8a3d6c083f8251e8a97bee6
Reviewed-on: https://gerrit.instructure.com/10606
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
it"should still associate rubrics and assignments"do
442
-
rubric=@copy_from.rubrics.new
443
-
rubric.title="Rubric"
444
-
rubric.data=[{:ratings=>[{:criterion_id=>"309_6312",:points=>5,:description=>"Full Marks",:id=>"blank",:long_description=>""},{:criterion_id=>"309_6312",:points=>0,:description=>"No Marks",:id=>"blank_2",:long_description=>""}],:points=>5,:description=>"Description of criterion",:id=>"309_6312",:long_description=>""}]
445
-
rubric.save!
441
+
defcreate_rubric_asmnt
442
+
@rubric=@copy_from.rubrics.new
443
+
@rubric.title="Rubric"
444
+
@rubric.data=[{:ratings=>[{:criterion_id=>"309_6312",:points=>5,:description=>"Full Marks",:id=>"blank",:long_description=>""},{:criterion_id=>"309_6312",:points=>0,:description=>"No Marks",:id=>"blank_2",:long_description=>""}],:points=>5,:description=>"Description of criterion",:id=>"309_6312",:long_description=>""}]
0 commit comments