summaryrefslogtreecommitdiff
path: root/spec/ruby/language/comment_spec.rb
blob: 690e844dc0e36c31edc48002f1345cc2fb319df5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require_relative '../spec_helper'

describe "The comment" do
  ruby_version_is "2.7" do
    it "can be placed between fluent dot now" do
      code = <<~CODE
        10
          # some comment
          .to_s
        CODE

      eval(code).should == '10'
    end
  end
end