Class: Spec::Runner::Formatter::HtmlFormatter
- Inherits:
-
Object
- Object
- Spec::Runner::Formatter::HtmlFormatter
- Defined in:
- lib/taglob/spec/tag_html_formatter.rb
Instance Method Summary collapse
- #global_styles ⇒ Object
- #original_global_styles ⇒ Object
- #original_report_header ⇒ Object
- #report_header ⇒ Object
Instance Method Details
#global_styles ⇒ Object
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_styles ⇒ Object
12 |
# File 'lib/taglob/spec/tag_html_formatter.rb', line 12 alias :original_global_styles :global_styles |
#original_report_header ⇒ Object
11 |
# File 'lib/taglob/spec/tag_html_formatter.rb', line 11 alias :original_report_header :report_header |
#report_header ⇒ Object
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 |