1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 09:15:01 +03:00

Make sure single ruby methods are included in this test

This commit is contained in:
Timothy Clem 2017-02-17 08:46:33 -08:00
parent 8b6ebb6db1
commit 8a8c3257f5
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ spec = parallel $ do
sourceBlobs <- blobsForPaths (both "ruby/methods.A.rb" "ruby/methods.B.rb")
diff <- testDiff sourceBlobs
diffTOC sourceBlobs diff `shouldBe`
[ JSONSummary $ Summarizable C.Method "foo" (sourceSpanBetween (1, 1) (2, 4)) "added"
[ JSONSummary $ Summarizable C.Method "self.foo" (sourceSpanBetween (1, 1) (2, 4)) "added"
, JSONSummary $ InSummarizable C.Method "bar" (sourceSpanBetween (4, 1) (6, 4))
, JSONSummary $ Summarizable C.Method "baz" (sourceSpanBetween (4, 1) (5, 4)) "removed" ]

View File

@ -1,4 +1,4 @@
def foo(a, *)
def self.foo(a, *)
end
def bar