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:
parent
8b6ebb6db1
commit
8a8c3257f5
@ -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" ]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
def foo(a, *)
|
||||
def self.foo(a, *)
|
||||
end
|
||||
|
||||
def bar
|
||||
|
Loading…
Reference in New Issue
Block a user