Class: TestsController

Inherits:
ApplicationController show all
Defined in:
frontend/app/controllers/tests_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#archivesspace, can_access?, permission_mappings, set_access_control

Instance Method Details

#shutdownObject



6
7
8
9
10
11
12
13
14
# File 'frontend/app/controllers/tests_controller.rb', line 6

def shutdown
  # Used to cleanly shutdown the devserver when running the coverage tests
  if ENV['COVERAGE_REPORTS'] == 'true'
    SimpleCov.result.format!
    exit!(0)
  end

  render :plain => "No way"
end