Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 with 10 additions and 0 deletions.
  1. +10 −0 test/outputter/html_outputter_test.rb
10 test/outputter/html_outputter_test.rb
View
@@ -22,4 +22,14 @@ class HtmlOutputterTest < Barby::TestCase
@barcode.to_html(:parent_style => false).must_include '<table class="barby_code" >'
end
+ it "should include valid black and white tags"
+ @barcode.to_html.must_include '<td class="barby_black"></td>'
+ @barcode.to_html.must_include '<td class="barby_white"></td>'
+ end
+
+ it "should not output the rows as an array"
+ @barcode.to_html.wont_include '['
+ @barcode.to_html.wont_include ']'
+ end
+
end
Please sign in to comment.
Something went wrong with that request. Please try again.