tests_controller.rb 579 B

123456789101112131415161718192021222324252627282930313233
  1. # Copyright (C) 2012-2014 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 /tests/table
  16. def table
  17. respond_to do |format|
  18. format.html # index.html.erb
  19. end
  20. end
  21. # GET /test/wait
  22. def wait
  23. sleep params[:sec].to_i
  24. result = { :success => true }
  25. render :json => result
  26. end
  27. end