Sha256: cf1aeac1e27c2e7f92179f7b47217c7437115fbb7b1d976f4446598a4dfa3438
Contents?: true
Size: 700 Bytes
Versions: 3
Compression:
Stored size: 700 Bytes
Contents
require 'test_helper' class ReplaceActiveRecordTest < ActiveSupport::TestCase test "replaces where" do assert_report do Product.where("query".taint) Product.where("query") end end test "replaces select" do assert_report do Product.select("query".taint) Product.select("query") end end test "replaces find_by_sql" do assert_report do Product.find_by_sql("select * from products".taint) Product.find_by_sql("select * from products") end end test "replaces count_by_sql" do assert_report do Product.count_by_sql("select * from products".taint) Product.count_by_sql("select * from products") end end end
Version data entries
3 entries across 3 versions & 1 rubygems