aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorRyan Oblak <rroblak@gmail.com>2012-03-09 16:33:40 -0800
committerRyan Oblak <rroblak@gmail.com>2012-03-09 16:33:40 -0800
commit12c44fe7f566990923fd0814acaa76b83309c832 (patch)
tree7123c5d6ec2b57440f0eb199b836bd192dc36e27 /activerecord/test/cases
parentfcef72890b7f8b974ee490268a48e147bd621253 (diff)
downloadrails-12c44fe7f566990923fd0814acaa76b83309c832.tar.gz
rails-12c44fe7f566990923fd0814acaa76b83309c832.tar.bz2
rails-12c44fe7f566990923fd0814acaa76b83309c832.zip
Fixed bug in Quoting that caused classes to be quoted incorrectly
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/connection_adapters/quoting_test.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/activerecord/test/cases/connection_adapters/quoting_test.rb b/activerecord/test/cases/connection_adapters/quoting_test.rb
new file mode 100644
index 0000000000..f523cea9ca
--- /dev/null
+++ b/activerecord/test/cases/connection_adapters/quoting_test.rb
@@ -0,0 +1,11 @@
+module ActiveRecord
+ module ConnectionAdapters
+ module Quoting
+ class QuotingTest < ActiveRecord::TestCase
+ def test_quoting_classes
+ assert_equal "'Object'", AbstractAdapter.new(nil).quote(Object)
+ end
+ end
+ end
+ end
+end \ No newline at end of file