summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Jankowski <matt@jankowski.online>2023-06-06 08:51:03 -0400
committerGitHub <noreply@github.com>2023-06-06 14:51:03 +0200
commitb74c3cd7082641d64ffb5cbd8cd6633c808b6e78 (patch)
treeaba8f51e508306afc9ce0fec9847c97a6ea6ed6b
parentc66250abf17b4aad1abc1500c14bf9862c078226 (diff)
Fix `RSpec/DescribedClass` cop missed items (#25309)
-rw-r--r--spec/lib/feed_manager_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/lib/feed_manager_spec.rb b/spec/lib/feed_manager_spec.rb
index 5bfe11f6aa5..dcb180dc9db 100644
--- a/spec/lib/feed_manager_spec.rb
+++ b/spec/lib/feed_manager_spec.rb
@@ -161,7 +161,7 @@ RSpec.describe FeedManager do
list.accounts << bob
allow(List).to receive(:where).and_return(list)
status = Fabricate(:status, text: 'I post a lot', account: bob)
- expect(FeedManager.instance.filter?(:home, status, alice)).to be true
+ expect(described_class.instance.filter?(:home, status, alice)).to be true
end
it 'returns true for reblog from followee on exclusive list' do
@@ -171,7 +171,7 @@ RSpec.describe FeedManager do
allow(List).to receive(:where).and_return(list)
status = Fabricate(:status, text: 'I post a lot', account: bob)
reblog = Fabricate(:status, reblog: status, account: jeff)
- expect(FeedManager.instance.filter?(:home, reblog, alice)).to be true
+ expect(described_class.instance.filter?(:home, reblog, alice)).to be true
end
it 'returns false for post from followee on non-exclusive list' do
@@ -179,7 +179,7 @@ RSpec.describe FeedManager do
alice.follow!(bob)
list.accounts << bob
status = Fabricate(:status, text: 'I post a lot', account: bob)
- expect(FeedManager.instance.filter?(:home, status, alice)).to be false
+ expect(described_class.instance.filter?(:home, status, alice)).to be false
end
it 'returns false for reblog from followee on non-exclusive list' do
@@ -188,7 +188,7 @@ RSpec.describe FeedManager do
list.accounts << jeff
status = Fabricate(:status, text: 'I post a lot', account: bob)
reblog = Fabricate(:status, reblog: status, account: jeff)
- expect(FeedManager.instance.filter?(:home, reblog, alice)).to be false
+ expect(described_class.instance.filter?(:home, reblog, alice)).to be false
end
end