class SunspotMatchers::HaveSearchParamsForSession
Public Class Methods
new(session, method, *args, &block)
click to toggle source
# File lib/sunspot_matchers/test_helper.rb, line 12 def initialize(session, method, *args, &block) @session = session @method = method @args = (block.nil? ? args : [*args, block]) end
Public Instance Methods
get_matcher()
click to toggle source
# File lib/sunspot_matchers/test_helper.rb, line 18 def get_matcher matcher_class = case @method when :with WithMatcher when :without WithoutMatcher when :keywords, :fulltext KeywordsMatcher when :boost BoostMatcher when :facet FacetMatcher when :order_by OrderByMatcher when :paginate PaginationMatcher end matcher_class.new(@session, @args) end