aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2016-09-12 12:02:34 -0700
committerGitHub <noreply@github.com>2016-09-12 12:02:34 -0700
commitdc75104948bad953947716c018fc71ba28e0e236 (patch)
treeedd5468782af5a6c4f7efb392120435ce34cd695
parente23cbdda632e3e7ef228cfe8b12832f1bad1c706 (diff)
parentedf92f3a0d57942ea84ebac6b9b9f4d7bec3d898 (diff)
downloadrails-dc75104948bad953947716c018fc71ba28e0e236.tar.gz
rails-dc75104948bad953947716c018fc71ba28e0e236.tar.bz2
rails-dc75104948bad953947716c018fc71ba28e0e236.zip
Merge pull request #26460 from kamipo/remove_useless_test_string_with_crazy_column
Remove useless `test_string_with_crazy_column`
-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