Skip to content

Commit

Permalink
fix(ruby): update test examples
Browse files Browse the repository at this point in the history
  • Loading branch information
elsapet committed Oct 7, 2024
1 parent d3325ab commit 1cc8376
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/ruby/rails/sql_injection/testdata/injected_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
find_by!("oops #{params[:oops]}")
# bearer:expected ruby_rails_sql_injection
User.joins("INNER JOIN #{params[:oops]}")
# bearer:expected ruby_rails_sql_injection
select("#{params[:oops]} AS oops")

# chained case
# bearer:expected ruby_rails_sql_injection
Expand Down
4 changes: 4 additions & 0 deletions tests/ruby/rails/sql_injection/testdata/shared_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@
ITEMS.count
ITEMS.count(:apple)

# bearer:expected ruby_rails_sql_injection
User.select("#{params[:oops]} AS oops")
# bearer:expected ruby_rails_sql_injection
user.posts.select("#{params[:oops]} AS oops")

0 comments on commit 1cc8376

Please sign in to comment.