benaldred (owner)

Revisions

gist: 169220 Download_button fork
public
Public Clone URL: git://gist.github.com/169220.git
Embed All Files: show embed
nice_html.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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