Class: Cucumberhtml::CucumberToHtmlController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Cucumberhtml::CucumberToHtmlController
- Defined in:
- app/controllers/cucumberhtml/cucumber_to_html_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 8 9 |
# File 'app/controllers/cucumberhtml/cucumber_to_html_controller.rb', line 5 def index file = File.read('tmp/cucumber_result.json') json = JSON.parse(file) render html: CucumberToHtml::Cell::Gherkin.call(json) end |