Skip to content

Commit 424f31a

Browse files
committed
Add test for AR Model.create instantiations
These currently aren't recognised.
1 parent 6330915 commit 424f31a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ruby/ql/test/library-tests/frameworks/active_record/ActiveRecord.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ activeRecordModelClassMethodCalls
135135
| ActiveRecord.rb:72:5:72:24 | call to create |
136136
| ActiveRecord.rb:76:5:76:66 | call to create |
137137
| ActiveRecord.rb:80:5:80:68 | call to create |
138+
| ActiveRecord.rb:84:5:84:16 | call to create |
138139
| ActiveRecord.rb:88:5:88:27 | call to update |
139140
| ActiveRecord.rb:92:5:92:69 | call to update |
140141
| ActiveRecord.rb:96:5:96:71 | call to update |

ruby/ql/test/library-tests/frameworks/active_record/ActiveRecord.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def create3
8181
end
8282

8383
def create4
84-
84+
Admin.create
8585
end
8686

8787
def update1

0 commit comments

Comments
 (0)