1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Move test_quoting_classes into test/cases/quoting_test.rb

This commit is contained in:
Ryuta Kamizono 2016-09-11 08:21:37 +09:00
parent fe1f4b2ad5
commit f7f66e2ba9
2 changed files with 4 additions and 13 deletions

View file

@ -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

View file

@ -124,6 +124,10 @@ module ActiveRecord
assert_equal "'lol'", @quoter.quote(DateTime.now, nil) assert_equal "'lol'", @quoter.quote(DateTime.now, nil)
end end
def test_quoting_classes
assert_equal "'Object'", @quoter.quote(Object)
end
def test_crazy_object def test_crazy_object
crazy = Object.new crazy = Object.new
e = assert_raises(TypeError) do e = assert_raises(TypeError) do