Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Commas aren't comas.
Type a fixo.
  • Loading branch information
Josh Adams committed Mar 20, 2013
1 parent 730f725 commit 9a62711
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/test/cases/base_test.rb
Expand Up @@ -141,13 +141,13 @@ def test_invalid_limit
end
end

def test_limit_should_sanitize_sql_injection_for_limit_without_comas
def test_limit_should_sanitize_sql_injection_for_limit_without_commas
assert_raises(ArgumentError) do
Topic.limit("1 select * from schema").to_a
end
end

def test_limit_should_sanitize_sql_injection_for_limit_with_comas
def test_limit_should_sanitize_sql_injection_for_limit_with_commas
assert_raises(ArgumentError) do
Topic.limit("1, 7 procedure help()").to_a
end
Expand Down

0 comments on commit 9a62711

Please sign in to comment.