Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(rubric-criterion-denominator): changelog
Browse files Browse the repository at this point in the history
pranavrao145 committed Jan 3, 2025
1 parent 7921401 commit 8c4d2d3
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
### 🐛 Bug fixes

- Ensures row selection for peer reviewer unassigning has the same validation checks as individual selections (#7274)
- Ensures mark levels on a rubric criterion are properly scaled when its max mark is updated (#7311)

### 🔧 Internal changes

3 changes: 3 additions & 0 deletions spec/models/rubric_criterion_spec.rb
Original file line number Diff line number Diff line change
@@ -140,6 +140,7 @@
level_names = ['Level 1', 'Level 2', 'Level 3']
old_marks = level_names.map { |name| rubric.levels.find { |level| level.name == name }.mark }

rubric.update!(max_mark: 8.0)
rubric.update_levels(levels_attributes, 2.0)
rubric.reload

@@ -150,6 +151,7 @@
end

it 'does not scale level marks if they have been changed in levels_attributes' do
rubric.update!(max_mark: 8.0)
rubric.update_levels(levels_attributes, 2.0)
rubric.reload

@@ -162,6 +164,7 @@
end

it 'does not scale marks for any new levels in level_attributes' do
rubric.update!(max_mark: 8.0)
rubric.update_levels(levels_attributes, 2.0)
rubric.reload

0 comments on commit 8c4d2d3

Please sign in to comment.