diff options
author | Claire <claire.github-309c@sitedethib.com> | 2024-07-12 15:57:19 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2024-07-12 15:57:19 +0200 |
commit | 6900061885972739bd571f0b1cc3129af13d12c6 (patch) | |
tree | 19b463dbf1517429c1a49bec8a523e8f91fb3652 | |
parent | d4c67919f1fd3948d801848e82e739e3e648b9c6 (diff) |
Add tests for `filtered` attributefeatures/filtered-boolean
-rw-r--r-- | spec/requests/api/v1/notifications_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/requests/api/v1/notifications_spec.rb b/spec/requests/api/v1/notifications_spec.rb index 33a74cf8149..c9034c17dcb 100644 --- a/spec/requests/api/v1/notifications_spec.rb +++ b/spec/requests/api/v1/notifications_spec.rb @@ -36,6 +36,7 @@ RSpec.describe 'Notifications' do expect(response).to have_http_status(200) expect(body_as_json.size).to eq 5 expect(body_json_types).to include('reblog', 'mention', 'favourite', 'follow') + expect(body_as_json.any? { |x| x[:filtered] }).to be false end end @@ -48,6 +49,7 @@ RSpec.describe 'Notifications' do expect(response).to have_http_status(200) expect(body_as_json.size).to eq 6 expect(body_json_types).to include('reblog', 'mention', 'favourite', 'follow') + expect(body_as_json.any? { |x| x[:filtered] }).to be true end end |