Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 16 lines (12 sloc) 343 Bytes
#!/usr/bin/env ruby
output = `./cucumber.py sample.feature`
if $? == 0
File.open("cucumber_on_github.html", "w") do |f|
f << '<html><head><title>Gherkin with Github colors</title><link rel="stylesheet" href="github.css"></head><body>'
f<< output
f << '</body></html>'
end
`open cucumber_on_github.html`
else
exit $?
end