Sha256: 47706587a9d4a53cf71ec92e41b4794eba5ee76c508fbc61a83b44e452566526
Contents?: true
Size: 505 Bytes
Versions: 31
Compression:
Stored size: 505 Bytes
Contents
require 'test_helper' require 'review/preprocessor' require 'stringio' class PreprocessorStripTest < Test::Unit::TestCase include ReVIEW def test_gets f = StringIO.new '= Header' s = Preprocessor::Strip.new(f) expect = '= Header' actual = s.gets assert_equal expect, actual end def test_gets_with_comment f = StringIO.new '#@warn(write it later)' s = Preprocessor::Strip.new(f) expect = '#@#' + "\n" actual = s.gets assert_equal expect, actual end end
Version data entries
31 entries across 31 versions & 3 rubygems