diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-12-07 09:03:42 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-12-07 09:03:42 +0100 |
commit | 9a3d91f629ae0e8f722d56b8634bfad299ab9f04 (patch) | |
tree | 324a2b04d34049d7f31a041d6a44b23d45a46e6b /lib | |
parent | fe523a304520a09f6371f45bd63b9e8988776c03 (diff) | |
parent | b59fb28e90bc21d6fd1a6bafd13cfbd81ab5be54 (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Conflicts: - `app/models/concerns/domain_materializable.rb`: Fixed a code style issue upstream in a PR that got merged in glitch-soc earlier. Changed the code to match upstream's.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/tests.rake | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/tasks/tests.rake b/lib/tasks/tests.rake index 96d2f7112..1dd25abb9 100644 --- a/lib/tasks/tests.rake +++ b/lib/tasks/tests.rake @@ -43,6 +43,16 @@ namespace :tests do puts 'CustomFilterKeyword records not created as expected' exit(1) end + + unless Admin::ActionLog.find_by(target_type: 'DomainBlock', target_id: 1).human_identifier == 'example.org' + puts 'Admin::ActionLog domain block records not updated as expected' + exit(1) + end + + unless Admin::ActionLog.find_by(target_type: 'EmailDomainBlock', target_id: 1).human_identifier == 'example.org' + puts 'Admin::ActionLog email domain block records not updated as expected' + exit(1) + end end desc 'Populate the database with test data for 2.4.3' @@ -84,8 +94,8 @@ namespace :tests do VALUES (1, 'destroy', 'Account', 1, now(), now()), (1, 'destroy', 'User', 1, now(), now()), - (1, 'destroy', 'DomainBlock', 1312, now(), now()), - (1, 'destroy', 'EmailDomainBlock', 1312, now(), now()), + (1, 'destroy', 'DomainBlock', 1, now(), now()), + (1, 'destroy', 'EmailDomainBlock', 1, now(), now()), (1, 'destroy', 'Status', 1, now(), now()), (1, 'destroy', 'CustomEmoji', 3, now(), now()); SQL |