test/lib/docparser/output/screen_output_test.rb in docparser-0.1.4 vs test/lib/docparser/output/screen_output_test.rb in docparser-0.1.6
- old
+ new
@@ -33,22 +33,22 @@
end
it 'must output the data after close' do
$out = StringIO.new
output = Class.new DocParser::ScreenOutput do
- def page(*args, &p)
- args << p
- args.compact!
- page_to $out, args
- end
- end.new
+ def page(*args, &p)
+ args << p
+ args.compact!
+ page_to $out, args
+ end
+ end.new
output.header = 'test', 'the', 'header'
output.add_row ['aap1' , '', 'mies']
output.add_row %w(aap2 mies1)
output.close
out = $out.string
out.must_include 'header'
out.must_include 'aap1'
out.must_include 'mies1'
out.must_include 'mies'
end
-end
\ No newline at end of file
+end