Skip to content

Commit a74f789

Browse files
committed
[Rails5] Fix test_column_names_are_escaped_coerced case.
1 parent 86af1c7 commit a74f789

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/cases/coerced_tests.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,8 @@ def test_typecast_attribute_from_select_to_true_coerced
3535
class BasicsTest < ActiveRecord::TestCase
3636
coerce_tests! :test_column_names_are_escaped
3737
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
38+
conn = ActiveRecord::Base.connection
39+
assert_equal '[t]]]', conn.quote_column_name('t]')
4340
end
4441

4542
# PENDING: [Rails5.x] Remove coerced tests and use simple symbol types..

0 commit comments

Comments
 (0)