spec/unit/unparser/comments/consume_spec.rb in unparser-0.3.0 vs spec/unit/unparser/comments/consume_spec.rb in unparser-0.4.0
- old
+ new
@@ -1,10 +1,10 @@
require 'spec_helper'
describe Unparser::Comments, '#consume' do
let(:ast_and_comments) do
- Parser::CurrentRuby.parse_with_comments(<<-RUBY)
+ Unparser.parse_with_comments(<<~'RUBY')
def hi # EOL 1
end # EOL 2
RUBY
end
let(:ast) { ast_and_comments[0] }