diff options
Diffstat (limited to 'spec/syntax_suggest/integration/syntax_suggest_spec.rb')
-rw-r--r-- | spec/syntax_suggest/integration/syntax_suggest_spec.rb | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/spec/syntax_suggest/integration/syntax_suggest_spec.rb b/spec/syntax_suggest/integration/syntax_suggest_spec.rb index e96173717d..bb50fafce7 100644 --- a/spec/syntax_suggest/integration/syntax_suggest_spec.rb +++ b/spec/syntax_suggest/integration/syntax_suggest_spec.rb @@ -207,57 +207,5 @@ module SyntaxSuggest > 4 end EOM end - - it "comment inside of a method" do - source = <<~'EOM' - class Dog - def bark - # todo - end - - def sit - print "sit" - end - end - end # extra end - EOM - - io = StringIO.new - SyntaxSuggest.call( - io: io, - source: source - ) - out = io.string - expect(out).to include(<<~EOM) - > 1 class Dog - > 9 end - > 10 end # extra end - EOM - end - - it "space inside of a method" do - source = <<~'EOM' - class Dog # 1 - def bark # 2 - - end # 4 - - def sit # 6 - print "sit" # 7 - end # 8 - end # 9 - end # extra end - EOM - - io = StringIO.new - SyntaxSuggest.call( - io: io, - source: source - ) - out = io.string - expect(out).to include(<<~EOM) - > 10 end # extra end - EOM - end end end |