Skip to content

Instantly share code, notes, and snippets.

@benaldred
Created August 17, 2009 16:22
Show Gist options
  • Save benaldred/169220 to your computer and use it in GitHub Desktop.
Save benaldred/169220 to your computer and use it in GitHub Desktop.
require 'cucumber/formatter/html'
class NiceHtml < Cucumber::Formatter::Html
def initialize(step_mother, io, options)
super(step_mother, io, options)
end
def inline_css
@builder.style(:type => 'text/css') do
@builder.text!(File.read(File.dirname(__FILE__) + '/nice_cucumber.css'))
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment