let(:user){create(:user)}subject{described_class.new}describe'#perform'dolet(:oldrev){"123456"}let(:newrev){"789012"}let(:ref){"refs/heads/test"}defperformsubject.perform(project.id,user.id,oldrev,newrev,ref)endit'executes MergeRequests::RefreshService with expected values'doexpect(MergeRequests::RefreshService).toreceive(:new).with(project,user).and_call_originalexpect_any_instance_of(MergeRequests::RefreshService).toreceive(:execute).with(oldrev,newrev,ref)performendendend