aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/quoting_test.rb
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-08-09 20:04:37 +0530
committerVipul A M <vipulnsward@gmail.com>2013-08-09 20:04:37 +0530
commit5ef02de131d1d655f15673cbf5593589d97bf675 (patch)
treea3ee3dfc6847b330803162ab320751c5e4f42b20 /activerecord/test/cases/quoting_test.rb
parent0053b2a1c497832da23f6dcb3ea628f3c8bb4d30 (diff)
downloadrails-5ef02de131d1d655f15673cbf5593589d97bf675.tar.gz
rails-5ef02de131d1d655f15673cbf5593589d97bf675.tar.bz2
rails-5ef02de131d1d655f15673cbf5593589d97bf675.zip
Remove redundant `string_to_binary` from type-casting
Diffstat (limited to 'activerecord/test/cases/quoting_test.rb')
-rw-r--r--activerecord/test/cases/quoting_test.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/activerecord/test/cases/quoting_test.rb b/activerecord/test/cases/quoting_test.rb
index 85fbe01416..44b2064110 100644
--- a/activerecord/test/cases/quoting_test.rb
+++ b/activerecord/test/cases/quoting_test.rb
@@ -184,25 +184,6 @@ module ActiveRecord
assert_equal "'lo\\\\l'", @quoter.quote('lo\l', FakeColumn.new(:binary))
end
- def test_quote_binary_with_string_to_binary
- col = Class.new(FakeColumn) {
- def string_to_binary(value)
- 'foo'
- end
- }.new(:binary)
- assert_equal "'foo'", @quoter.quote('lo\l', col)
- end
-
- def test_quote_as_mb_chars_binary_column_with_string_to_binary
- col = Class.new(FakeColumn) {
- def string_to_binary(value)
- 'foo'
- end
- }.new(:binary)
- string = ActiveSupport::Multibyte::Chars.new('lo\l')
- assert_equal "'foo'", @quoter.quote(string, col)
- end
-
def test_string_with_crazy_column
assert_equal "'lo\\\\l'", @quoter.quote('lo\l', FakeColumn.new(:foo))
end