Sha256: 6852c69dbb76bd4c20b634d5f67bdff051c3171f47064787a44bf2113a6ea79c
Contents?: true
Size: 395 Bytes
Versions: 14
Compression:
Stored size: 395 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper.rb' module ConditionTests class LikeTest < ActiveSupport::TestCase def test_sanitize condition = Searchlogic::Condition::Like.new(Account, :column => Account.columns_hash["name"]) condition.value = "Binary and blah" assert_equal ["\"accounts\".\"name\" LIKE ?", "%Binary and blah%"], condition.sanitize end end end
Version data entries
14 entries across 14 versions & 2 rubygems