Use Sidekiq fake! instead of inline! in specs (#25369)
This commit is contained in:
@@ -150,7 +150,7 @@ RSpec.describe FollowService, type: :service do
|
||||
expect(FollowRequest.find_by(account: sender, target_account: bob)).to_not be_nil
|
||||
end
|
||||
|
||||
it 'sends a follow activity to the inbox' do
|
||||
it 'sends a follow activity to the inbox', :sidekiq_inline do
|
||||
expect(a_request(:post, 'http://example.com/inbox')).to have_been_made.once
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user