about summary refs log tree commit diff
path: root/spec/models
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-11-14 08:06:06 +0100
committerGitHub <noreply@github.com>2022-11-14 08:06:06 +0100
commitb31afc62943b79bf97338040e39123b9dd68f31f (patch)
treef6d442f3e51147e365e1197e07c3e6548a1d4992 /spec/models
parent5c826c408db86c3b4abf4959c092ad4c5c807896 (diff)
Fix error when passing unknown filter param in REST API (#20626)
Fix #19156
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/custom_emoji_filter_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/custom_emoji_filter_spec.rb b/spec/models/custom_emoji_filter_spec.rb
index d859f5c5f..2b1b5dc54 100644
--- a/spec/models/custom_emoji_filter_spec.rb
+++ b/spec/models/custom_emoji_filter_spec.rb
@@ -50,10 +50,10 @@ RSpec.describe CustomEmojiFilter do
       context 'else' do
         let(:params) { { else: 'else' } }
 
-        it 'raises RuntimeError' do
+        it 'raises Mastodon::InvalidParameterError' do
           expect do
             subject
-          end.to raise_error(RuntimeError, /Unknown filter: else/)
+          end.to raise_error(Mastodon::InvalidParameterError, /Unknown filter: else/)
         end
       end
     end