about summary refs log tree commit diff
path: root/spec/services
diff options
context:
space:
mode:
authorAkihiko Odaki (@fn_aki@pawoo.net) <akihiko.odaki.4i@stu.hosei.ac.jp>2017-06-30 20:39:42 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-06-30 13:39:42 +0200
commit7362469d8956d5f972283aadd4157631aa66b085 (patch)
tree9c307674ae813f1fdc4ac4d909a976246faaeb35 /spec/services
parent1273fbf86ea3bd906e687a33e1f62c99f100ecca (diff)
Do not raise an error if PrecomputeFeed could not find any status (#4015)
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/precompute_feed_service_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/services/precompute_feed_service_spec.rb b/spec/services/precompute_feed_service_spec.rb
index 72235a966..e2294469c 100644
--- a/spec/services/precompute_feed_service_spec.rb
+++ b/spec/services/precompute_feed_service_spec.rb
@@ -18,5 +18,10 @@ RSpec.describe PrecomputeFeedService do
 
       expect(Redis.current.zscore(FeedManager.instance.key(:home, account.id), reblog.id)).to eq status.id
     end
+
+    it 'does not raise an error even if it could not find any status' do
+      account = Fabricate(:account)
+      subject.call(account)
+    end
   end
 end