mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Ruby: Add test for other=
This commit is contained in:
@@ -40,6 +40,13 @@ activeRecordInstances
|
||||
| associations.rb:29:1:29:7 | author2 |
|
||||
| associations.rb:29:1:29:13 | call to posts |
|
||||
| associations.rb:29:18:29:22 | post2 |
|
||||
| associations.rb:31:1:31:5 | post1 |
|
||||
| associations.rb:31:1:31:12 | __synth__0 |
|
||||
| associations.rb:31:1:31:12 | call to author= |
|
||||
| associations.rb:31:1:31:22 | ... |
|
||||
| associations.rb:31:16:31:22 | ... = ... |
|
||||
| associations.rb:31:16:31:22 | ... = ... |
|
||||
| associations.rb:31:16:31:22 | author2 |
|
||||
| associations.rb:35:1:35:5 | post2 |
|
||||
| associations.rb:35:1:35:14 | call to comments |
|
||||
| associations.rb:35:1:35:21 | call to create |
|
||||
@@ -168,6 +175,7 @@ activeRecordModelInstantiations
|
||||
| associations.rb:27:9:27:21 | call to posts | associations.rb:5:1:9:3 | Post |
|
||||
| associations.rb:27:9:27:28 | call to create | associations.rb:5:1:9:3 | Post |
|
||||
| associations.rb:29:1:29:13 | call to posts | associations.rb:5:1:9:3 | Post |
|
||||
| associations.rb:31:1:31:12 | call to author= | associations.rb:1:1:3:3 | Author |
|
||||
| associations.rb:35:1:35:14 | call to comments | associations.rb:15:1:17:3 | Comment |
|
||||
| associations.rb:35:1:35:21 | call to create | associations.rb:15:1:17:3 | Comment |
|
||||
| associations.rb:37:1:37:13 | call to posts | associations.rb:5:1:9:3 | Post |
|
||||
@@ -206,3 +214,4 @@ persistentWriteAccesses
|
||||
| ActiveRecord.rb:88:5:88:69 | call to update | ActiveRecord.rb:88:27:88:39 | ...[...] |
|
||||
| ActiveRecord.rb:88:5:88:69 | call to update | ActiveRecord.rb:88:52:88:68 | ...[...] |
|
||||
| ActiveRecord.rb:92:5:92:71 | call to update | ActiveRecord.rb:92:21:92:70 | call to [] |
|
||||
| associations.rb:31:16:31:22 | ... = ... | associations.rb:31:16:31:22 | author2 |
|
||||
|
||||
@@ -28,7 +28,7 @@ post2 = author2.posts.create
|
||||
|
||||
author2.posts << post2
|
||||
|
||||
|
||||
post1.author = author2
|
||||
|
||||
# The final method call in this chain should not be recognised as an
|
||||
# instantiation.
|
||||
|
||||
Reference in New Issue
Block a user