require "rails_helper" RSpec.describe MatchmakingSweepJob, type: :job do describe "#perform" do it "calls MatchmakingService.sweep" do expect(MatchmakingService).to receive(:sweep) described_class.new.perform end end end