Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Beef up tests for html outputter

(#16)

- should not be printing arrays
- should print valid html for table cells
  • Loading branch information...
commit f1d84f69984057ababec4d6de8ee4260bd668372 1 parent 8ba2221
Caleb Thompson authored

Showing 1 changed file with 10 additions and 0 deletions. Show diff stats Hide diff stats

  1. +10 0 test/outputter/html_outputter_test.rb
10 test/outputter/html_outputter_test.rb
@@ -22,4 +22,14 @@ class HtmlOutputterTest < Barby::TestCase
22 22 @barcode.to_html(:parent_style => false).must_include '<table class="barby_code" >'
23 23 end
24 24
  25 + it "should include valid black and white tags"
  26 + @barcode.to_html.must_include '<td class="barby_black"></td>'
  27 + @barcode.to_html.must_include '<td class="barby_white"></td>'
  28 + end
  29 +
  30 + it "should not output the rows as an array"
  31 + @barcode.to_html.wont_include '['
  32 + @barcode.to_html.wont_include ']'
  33 + end
  34 +
25 35 end

0 comments on commit f1d84f6

Please sign in to comment.
Something went wrong with that request. Please try again.