diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-09-11 08:21:37 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-10-29 16:39:24 +0900 |
commit | f7f66e2ba9340122fe98a85b99712e2d34ecb222 (patch) | |
tree | 428216d3209e6e5e8c5814a2db7baf8055ce842d | |
parent | fe1f4b2ad56f010a4e9b93d547d63a15953d9dc2 (diff) | |
download | rails-f7f66e2ba9340122fe98a85b99712e2d34ecb222.tar.gz rails-f7f66e2ba9340122fe98a85b99712e2d34ecb222.tar.bz2 rails-f7f66e2ba9340122fe98a85b99712e2d34ecb222.zip |
Move `test_quoting_classes` into `test/cases/quoting_test.rb`
-rw-r--r-- | activerecord/test/cases/connection_adapters/quoting_test.rb | 13 | ||||
-rw-r--r-- | activerecord/test/cases/quoting_test.rb | 4 |
2 files changed, 4 insertions, 13 deletions
diff --git a/activerecord/test/cases/connection_adapters/quoting_test.rb b/activerecord/test/cases/connection_adapters/quoting_test.rb deleted file mode 100644 index 59dcb96ebc..0000000000 --- a/activerecord/test/cases/connection_adapters/quoting_test.rb +++ /dev/null @@ -1,13 +0,0 @@ -require "cases/helper" - -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 diff --git a/activerecord/test/cases/quoting_test.rb b/activerecord/test/cases/quoting_test.rb index 296dafacc2..05b71638c1 100644 --- a/activerecord/test/cases/quoting_test.rb +++ b/activerecord/test/cases/quoting_test.rb @@ -124,6 +124,10 @@ module ActiveRecord assert_equal "'lol'", @quoter.quote(DateTime.now, nil) end + def test_quoting_classes + assert_equal "'Object'", @quoter.quote(Object) + end + def test_crazy_object crazy = Object.new e = assert_raises(TypeError) do |