Sha256: cc10db1508b65d3e29330ccafb6801a355d00eaac2ba1791d8af45f5abbe1658
Contents?: true
Size: 614 Bytes
Versions: 6
Compression:
Stored size: 614 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper.rb' class TestSearchConditions < Test::Unit::TestCase def test_conditions search = Account.new_search assert_kind_of Searchgasm::Conditions::Base, search.conditions assert_equal search.conditions.klass, Account search.conditions = {:name_like => "Binary"} assert_kind_of Searchgasm::Conditions::Base, search.conditions search = Account.new_search(:conditions => {:name_like => "Ben"}) assert_equal({:name_like => "Ben"}, search.conditions.conditions) end def test_sanitize # This is tested in test_search_base end end
Version data entries
6 entries across 6 versions & 1 rubygems