Sha256: dbe10b801eca45ddd367a767aed999658ba606f0a08bded9aa1c6be426a79cc7
Contents?: true
Size: 491 Bytes
Versions: 3
Compression:
Stored size: 491 Bytes
Contents
require 'spec_helper' require 'parser/current' describe Unparser::Comments, '#take_all' do let(:ast_and_comments) do Parser::CurrentRuby.parse_with_comments(<<-RUBY) def hi # EOL 1 end # EOL 2 RUBY end let(:ast) { ast_and_comments[0] } let(:comments) { ast_and_comments[1] } let(:object) { described_class.new(comments) } it 'should take all comments' do expect(object.take_all).to eql(comments) expect(object.take_all).to eql([]) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
unparser-0.1.5 | spec/unit/unparser/comments/take_all_spec.rb |
unparser-0.1.4 | spec/unit/unparser/comments/take_all_spec.rb |
unparser-0.1.3 | spec/unit/unparser/comments/take_all_spec.rb |