Compact validation matcher checks where possible (#39435)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2026-07-21 12:43:46 +00:00
1 parent 8ea057d215
commit ac5ced71cd
8 files changed
+8 -21

No files matched your search

+1 -2
View File
@@ -19,7 +19,6 @@ RSpec.describe InstanceModerationNote do
it { is_expected.to allow_value('non-existent.example').for(:domain) }
it { is_expected.to validate_length_of(:content).is_at_most(described_class::CONTENT_SIZE_LIMIT) }
it { is_expected.to validate_presence_of(:content) }
it { is_expected.to validate_presence_of(:domain) }
it { is_expected.to validate_presence_of(:content, :domain) }
end
end