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:
parent
fe1f4b2ad5
commit
f7f66e2ba9
2 changed files with 4 additions and 13 deletions
|
@ -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
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue