Skip to content

Commit d3275e6

Browse files
Add track_blank_changes as default option
Time to start fixing some test failures instead of creating them. Add track_blank_changes as a default option, defaulting to false. $ diff -u testresults/3-set-track_blank_changes.txt testresults/4-add-track_blank_changes-option.txt --- testresults/3-set-track_blank_changes.txt 2024-08-05 15:46:06.000000000 -0700 +++ testresults/4-add-track_blank_changes-option.txt 2024-08-05 19:34:48.000000000 -0700 @@ -504,7 +504,7 @@ [...] -456 examples, 14 failures, 2 pending +456 examples, 8 failures, 2 pending [...] The failures fixed are exactly the 6 introduced in commit 52cc180.
1 parent 11179d4 commit d3275e6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.rubocop_todo.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Metrics/BlockLength:
3636
# Offense count: 1
3737
# Configuration parameters: CountComments.
3838
Metrics/ClassLength:
39-
Max: 120
39+
Max: 121
4040

4141
# Offense count: 6
4242
Metrics/CyclomaticComplexity:

lib/mongoid/history/options.rb

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def default_options
3434
track_create: true,
3535
track_update: true,
3636
track_destroy: true,
37+
track_blank_changes: false,
3738
format: nil }
3839
end
3940

0 commit comments

Comments
 (0)