Sha256: e7b00bfe02f908ddb98118fb14b9e942a3796ad847b177322bb7a748d2b167f1

Contents?: true

Size: 388 Bytes

Versions: 14

Compression:

Stored size: 388 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper.rb'

module ConditionTests
  class BeginsWithTest < ActiveSupport::TestCase
    def test_sanitize
      condition = Searchlogic::Condition::BeginsWith.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

Version Path
schof-searchlogic-0.0.2 test/condition_tests/begins_with_test.rb
searchlogic-1.6.0 test/condition_tests/begins_with_test.rb
searchlogic-1.5.7 test/condition_tests/begins_with_test.rb
searchlogic-1.5.8 test/condition_tests/begins_with_test.rb
searchlogic-1.5.9 test/condition_tests/begins_with_test.rb
searchlogic-1.5.6 test/condition_tests/begins_with_test.rb
searchlogic-1.5.4 test/condition_tests/begins_with_test.rb
searchlogic-1.5.10 test/condition_tests/begins_with_test.rb
searchlogic-1.6.1 test/condition_tests/begins_with_test.rb
searchlogic-1.6.3 test/condition_tests/begins_with_test.rb
searchlogic-1.6.4 test/condition_tests/begins_with_test.rb
searchlogic-1.6.5 test/condition_tests/begins_with_test.rb
searchlogic-1.6.6 test/condition_tests/begins_with_test.rb
searchlogic-1.6.2 test/condition_tests/begins_with_test.rb