tests_controller.rb 469 B

1234567891011121314151617181920212223242526
  1. # Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
  2. class TestsController < ApplicationController
  3. # GET /tests/core
  4. def core
  5. respond_to do |format|
  6. format.html # index.html.erb
  7. end
  8. end
  9. # GET /tests/from
  10. def form
  11. respond_to do |format|
  12. format.html # index.html.erb
  13. end
  14. end
  15. # GET /test/wait
  16. def wait
  17. sleep params[:sec].to_i
  18. result = { :success => true }
  19. render :json => result
  20. end
  21. end