Remove the double-quote custom validation

Rails has had SQL injection prevention since at least 2009 so we don't
need our version of it anymore.

Fixes ticket #1237
This commit is contained in:
Matt Rogers 2012-02-02 22:27:18 -06:00
parent 71cd34a35f
commit e7268fbaa2
3 changed files with 9 additions and 2 deletions

View file

@ -75,6 +75,13 @@ class TodoTest < ActiveSupport::TestCase
assert_equal "must be a date in the future", t.errors.on(:show_from)
end
def test_validate_description_can_contain_quote
t = @not_completed2
t[:description] = "much \"ado\" about nothing"
assert t.save
assert_equal 0, t.errors.count
end
def test_defer_an_existing_todo
@not_completed2
assert_equal :active, @not_completed2.aasm_current_state