Update updoate_instance_info_scheduler_spec to instances table has one or more rows
This commit is contained in:
parent
15d0117b3b
commit
95bff4408e
1 changed files with 6 additions and 0 deletions
|
@ -5,6 +5,12 @@ require 'rails_helper'
|
|||
describe Scheduler::UpdateInstanceInfoScheduler do
|
||||
let(:worker) { described_class.new }
|
||||
|
||||
before do
|
||||
stub_request(:get, 'https://example.com/.well-known/nodeinfo').to_return(status: 200, body: '{}')
|
||||
Fabricate(:account, domain: 'example.com')
|
||||
Instance.refresh
|
||||
end
|
||||
|
||||
describe 'perform' do
|
||||
it 'runs without error' do
|
||||
expect { worker.perform }.to_not raise_error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue