Sha256: 47f7a60d99a6bff83ad6f0eb5bab283ab8c489cd5e71949f616b94566739511e
Contents?: true
Size: 878 Bytes
Versions: 5
Compression:
Stored size: 878 Bytes
Contents
# frozen_string_literal: true require "cases/helper" class PostgresqlCaseInsensitiveTest < ActiveRecord::PostgreSQLTestCase class Default < ActiveRecord::Base; end def test_case_insensitiveness connection = ActiveRecord::Base.connection attr = Default.arel_table[:char1] comparison = connection.case_insensitive_comparison(attr, nil) assert_match(/lower/i, comparison.to_sql) attr = Default.arel_table[:char2] comparison = connection.case_insensitive_comparison(attr, nil) assert_match(/lower/i, comparison.to_sql) attr = Default.arel_table[:char3] comparison = connection.case_insensitive_comparison(attr, nil) assert_match(/lower/i, comparison.to_sql) attr = Default.arel_table[:multiline_default] comparison = connection.case_insensitive_comparison(attr, nil) assert_match(/lower/i, comparison.to_sql) end end
Version data entries
5 entries across 5 versions & 1 rubygems