about summary refs log tree commit diff
path: root/spec/services/fan_out_on_write_service_spec.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-09-08 17:20:00 +0200
committerGitHub <noreply@github.com>2020-09-08 17:20:00 +0200
commit6e83020950ab81c6be6b3bfec92643f1b0d23ce6 (patch)
treeccd775be4b73170fcbf45407b84ad35fc37fb853 /spec/services/fan_out_on_write_service_spec.rb
parent437d71bddf967573df3912ee5976f7c5a5a7b4c7 (diff)
parent9748f074a385fce5ad6913b1a22fb7ea9e7566db (diff)
Merge pull request #1419 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'spec/services/fan_out_on_write_service_spec.rb')
-rw-r--r--spec/services/fan_out_on_write_service_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/fan_out_on_write_service_spec.rb b/spec/services/fan_out_on_write_service_spec.rb
index b7fc7f7ed..538dc2592 100644
--- a/spec/services/fan_out_on_write_service_spec.rb
+++ b/spec/services/fan_out_on_write_service_spec.rb
@@ -28,10 +28,10 @@ RSpec.describe FanOutOnWriteService, type: :service do
   end
 
   it 'delivers status to hashtag' do
-    expect(Tag.find_by!(name: 'test').statuses.pluck(:id)).to include status.id
+    expect(TagFeed.new(Tag.find_by(name: 'test'), alice).get(20).map(&:id)).to include status.id
   end
 
   it 'delivers status to public timeline' do
-    expect(Status.as_public_timeline(alice).map(&:id)).to include status.id
+    expect(PublicFeed.new(alice).get(20).map(&:id)).to include status.id
   end
 end