Class: Spec::Runner::Formatter::HtmlFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/taglob/spec/tag_html_formatter.rb

Instance Method Summary collapse

Instance Method Details

#global_stylesObject



21
22
23
# File 'lib/taglob/spec/tag_html_formatter.rb', line 21

def global_styles        
  original_global_styles + ".rspec-report h3 {margin: 0px 10px 0px 10px; padding: 10px;font: normal 11px ,'Lucida Grande', Helvetica, sans-serif;font-size: 1.2em;}"        
end

#original_global_stylesObject



12
# File 'lib/taglob/spec/tag_html_formatter.rb', line 12

alias :original_global_styles :global_styles

#original_report_headerObject



11
# File 'lib/taglob/spec/tag_html_formatter.rb', line 11

alias :original_report_header :report_header

#report_headerObject



13
14
15
16
17
18
19
# File 'lib/taglob/spec/tag_html_formatter.rb', line 13

def report_header
  if ENV['tags'].nil?
    original_report_header
  else
    original_report_header + "<div id='tag-header'><h3>These specs contain the following tags: #{ENV['tags']}</h3></div>"          
  end        
end