Sha256: 762fbb4582523d0942f9968429acc931a398146e44d67400492d8dc981479de4
Contents?: true
Size: 466 Bytes
Versions: 5
Compression:
Stored size: 466 Bytes
Contents
require 'spec_helper' 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
5 entries across 5 versions & 1 rubygems