Sha256: d73704f537264ba57baac7ad66bcffa06be24715d525677c1ff18b07d4b528b9
Contents?: true
Size: 464 Bytes
Versions: 2
Compression:
Stored size: 464 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper.rb' module ConditionTests class SiblingOfTest < ActiveSupport::TestCase def test_sanitize ben = users(:ben) drew = users(:drew) jennifer = users(:jennifer) condition = Searchlogic::Condition::SiblingOf.new(User) condition.value = drew assert_equal ["(\"users\".\"id\" != ?) AND (\"users\".\"parent_id\" = ?)", drew.id, ben.id], condition.sanitize end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
searchlogic-1.5.4 | test/condition_tests/sibling_of_test.rb |
searchlogic-1.5.6 | test/condition_tests/sibling_of_test.rb |