Sha256: 8456e35f5faca2cedf9c2f343db8e4fda638a9d5bb62a727b474986397039cb0
Contents?: true
Size: 362 Bytes
Versions: 14
Compression:
Stored size: 362 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper.rb' module ConditionTests class LessThanTest < ActiveSupport::TestCase def test_sanitize condition = Searchlogic::Condition::LessThan.new(Account, :column => Account.columns_hash["id"]) condition.value = 2 assert_equal ["\"accounts\".\"id\" < ?", 2], condition.sanitize end end end
Version data entries
14 entries across 14 versions & 2 rubygems