2017-08-10 19:09:14 -04:00
|
|
|
# :nocov:
|
2017-04-20 08:51:38 -04:00
|
|
|
if Rails.env.test?
|
|
|
|
class UnicornTestController < ActionController::Base
|
|
|
|
def pid
|
|
|
|
render plain: Process.pid.to_s
|
|
|
|
end
|
2017-08-10 19:09:14 -04:00
|
|
|
|
2017-04-20 08:51:38 -04:00
|
|
|
def kill
|
|
|
|
Process.kill(params[:signal], Process.pid)
|
|
|
|
render plain: 'Bye!'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2017-08-10 19:09:14 -04:00
|
|
|
# :nocov:
|