We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test_column_names_are_escaped_coerced
1 parent 86af1c7 commit a74f789Copy full SHA for a74f789
test/cases/coerced_tests.rb
@@ -35,11 +35,8 @@ def test_typecast_attribute_from_select_to_true_coerced
35
class BasicsTest < ActiveRecord::TestCase
36
coerce_tests! :test_column_names_are_escaped
37
def test_column_names_are_escaped_coerced
38
- conn = ActiveRecord::Base.connection
39
- classname = conn.class.name[/[^:]*$/]
40
- badchar = "'"
41
- quoted = conn.quote_column_name "foo#{badchar}bar"
42
- assert_equal "[foo'bar]", quoted
+ conn = ActiveRecord::Base.connection
+ assert_equal '[t]]]', conn.quote_column_name('t]')
43
end
44
45
# PENDING: [Rails5.x] Remove coerced tests and use simple symbol types..
0 commit comments