diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-12-15 20:07:41 +0000 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-12-15 20:45:37 +0000 |
commit | ceb33f84933639d3b61aac62e5e71fd087ab65ed (patch) | |
tree | 1b8fcb8f19d37c5faa0a4d63dd52d369fbaad5b1 /activerecord/test | |
parent | 8854bf29a3590771aa989eb7e4b79f31eba9d96d (diff) | |
download | rails-ceb33f84933639d3b61aac62e5e71fd087ab65ed.tar.gz rails-ceb33f84933639d3b61aac62e5e71fd087ab65ed.tar.bz2 rails-ceb33f84933639d3b61aac62e5e71fd087ab65ed.zip |
Split out most of the AR::Base code into separate modules :cake:
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/base_test.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index 343c8ef373..6b24364216 100644 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -1196,19 +1196,6 @@ class BasicsTest < ActiveRecord::TestCase assert(auto.id > 0) end - def quote_column_name(name) - "<#{name}>" - end - - def test_quote_keys - ar = AutoId.new - source = {"foo" => "bar", "baz" => "quux"} - actual = ar.send(:quote_columns, self, source) - inverted = actual.invert - assert_equal("<foo>", inverted["bar"]) - assert_equal("<baz>", inverted["quux"]) - end - def test_sql_injection_via_find assert_raise(ActiveRecord::RecordNotFound, ActiveRecord::StatementInvalid) do Topic.find("123456 OR id > 0") |