aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2016-09-11 16:14:44 +0900
committerRyuta Kamizono <kamipo@gmail.com>2016-09-11 16:14:44 +0900
commitedf92f3a0d57942ea84ebac6b9b9f4d7bec3d898 (patch)
tree162a522307d63e9eb3d7371ae1f08b436d2b6705 /activerecord/test
parentac122514261dff69e1de6f04277681215c3330be (diff)
downloadrails-edf92f3a0d57942ea84ebac6b9b9f4d7bec3d898.tar.gz
rails-edf92f3a0d57942ea84ebac6b9b9f4d7bec3d898.tar.bz2
rails-edf92f3a0d57942ea84ebac6b9b9f4d7bec3d898.zip
Remove useless `test_string_with_crazy_column`
Passing `FakeColumn` was removed at #15336 therefore `test_string_with_crazy_column` is duplicated with `test_quote_string_no_column`.
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/quoting_test.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/activerecord/test/cases/quoting_test.rb b/activerecord/test/cases/quoting_test.rb
index 1c276aa765..296dafacc2 100644
--- a/activerecord/test/cases/quoting_test.rb
+++ b/activerecord/test/cases/quoting_test.rb
@@ -133,16 +133,12 @@ module ActiveRecord
end
def test_quote_string_no_column
- assert_equal "'lo\\\\l'", @quoter.quote('lo\l', nil)
+ assert_equal "'lo\\\\l'", @quoter.quote('lo\l')
end
def test_quote_as_mb_chars_no_column
string = ActiveSupport::Multibyte::Chars.new('lo\l')
- assert_equal "'lo\\\\l'", @quoter.quote(string, nil)
- end
-
- def test_string_with_crazy_column
- assert_equal "'lo\\\\l'", @quoter.quote('lo\l')
+ assert_equal "'lo\\\\l'", @quoter.quote(string)
end
def test_quote_duration