unfortunately that causes an error :/ Perhaps I'm not doing it right? I tried:

    Jenkins.should_receive(:new_job_id).with(123).and_return(job_id)