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