require'spec_helper'describeSystemHookPushWorkerdoincludeRepoHelperssubject{described_class.new}describe'#perform'doit'executes SystemHooksService with expected values'dopush_data=double('push_data')system_hook_service=double('system_hook_service')expect(SystemHooksService).toreceive(:new).and_return(system_hook_service)expect(system_hook_service).toreceive(:execute_hooks).with(push_data,:push_hooks)subject.perform(push_data,:push_hooks)endendend