2017-08-17 22:00:37 +05:30
|
|
|
module RakeHelpers
|
|
|
|
def run_rake_task(task_name, *args)
|
|
|
|
Rake::Task[task_name].reenable
|
|
|
|
Rake.application.invoke_task("#{task_name}[#{args.join(',')}]")
|
|
|
|
end
|
|
|
|
|
|
|
|
def stub_warn_user_is_not_gitlab
|
|
|
|
allow_any_instance_of(Object).to receive(:warn_user_is_not_gitlab)
|
|
|
|
end
|
2017-09-10 17:25:29 +05:30
|
|
|
|
|
|
|
def silence_output
|
|
|
|
allow($stdout).to receive(:puts)
|
|
|
|
allow($stdout).to receive(:print)
|
|
|
|
end
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|