Class: Kapnismology::SmokeTestsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/kapnismology/smoke_tests_controller.rb

Overview

This is called when the user goes to the /smoke_test URL. This calls all the smoke tests registered in the application and gather the results

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
8
# File 'app/controllers/kapnismology/smoke_tests_controller.rb', line 5

def index
  response = SmokeTestResponse.new(SmokeTestCollection.evaluations(allowed_tags, blacklist))
  render json: response.render(request.original_url), status: response.status
end