Class: Cucumberhtml::CucumberToHtmlController

Inherits:
ApplicationController show all
Defined in:
app/controllers/cucumberhtml/cucumber_to_html_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



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