Permalink
Browse files

Beef up tests for html outputter

(#16)

- should not be printing arrays
- should print valid html for table cells
  • Loading branch information...
1 parent 8ba2221 commit f1d84f69984057ababec4d6de8ee4260bd668372 @calebthompson committed Jan 30, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 test/outputter/html_outputter_test.rb
View
10 test/outputter/html_outputter_test.rb
@@ -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

0 comments on commit f1d84f6

Please sign in to comment.