Commit 96b6dc2a authored by Alex Kalderimis's avatar Alex Kalderimis

Add worker spec

parent d16e33c6
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe IssueRebalancingWorker do
describe '#perform' do
it 'runs an instance of IssueRebalancingService' do
issue = create(:issue)
service = double(execute: nil)
expect(IssueRebalancingService).to receive(:new).with(issue).and_return(service)
described_class.new.perform(issue.id)
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment