Sha256: bd7e298f621f371e7ac2803e0bf6ced6f466906f0668999970037d63f111d804
Contents?: true
Size: 528 Bytes
Versions: 3
Compression:
Stored size: 528 Bytes
Contents
require File.join(File.dirname(__FILE__), 'spec_helper') unless has_parsetree? describe "Per line comment (# ...)" do should 'handle start of line' do process(<<EOL aa # bb cc EOL ).should.include([:comment, '# bb']) end should 'handle middle of line' do process(<<EOL aa # bb cc EOL ).should.include([:comment, '# bb']) end should 'ignore within heredoc' do process(<<EOL s <<eol aa # bb cc eol EOL ).should.not.include([:comment, '# bb']) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sourcify-0.3.0 | spec/proc_scanner/per_line_comment_spec.rb |
sourcify-0.2.3 | spec/proc_scanner/per_line_comment_spec.rb |
sourcify-0.2.2.1 | spec/proc_scanner/per_line_comment_spec.rb |