class SunspotMatchersTestunit::SunspotSessionSpy

Attributes

current_search_class[R]
original_session[R]
searches[RW]

Public Class Methods

new(original_session) click to toggle source
# File lib/sunspot_matchers_testunit/sunspot_session_spy.rb, line 20
def initialize(original_session)
  @searches = []
  @original_session = original_session
  @config = Sunspot::Configuration.build
end

Public Instance Methods

commit() click to toggle source
# File lib/sunspot_matchers_testunit/sunspot_session_spy.rb, line 68
def commit
end
commit_if_delete_dirty() click to toggle source
# File lib/sunspot_matchers_testunit/sunspot_session_spy.rb, line 65
def commit_if_delete_dirty
end
commit_if_dirty() click to toggle source
# File lib/sunspot_matchers_testunit/sunspot_session_spy.rb, line 62
def commit_if_dirty
end
delete_dirty?() click to toggle source
# File lib/sunspot_matchers_testunit/sunspot_session_spy.rb, line 58
def delete_dirty?
  false
end
dirty?() click to toggle source
# File lib/sunspot_matchers_testunit/sunspot_session_spy.rb, line 54
def dirty?
  false
end
index(*objects) click to toggle source
# File lib/sunspot_matchers_testunit/sunspot_session_spy.rb, line 30
def index(*objects)
end
index!(*objects) click to toggle source
# File lib/sunspot_matchers_testunit/sunspot_session_spy.rb, line 33
def index!(*objects)
end
inspect() click to toggle source
# File lib/sunspot_matchers_testunit/sunspot_session_spy.rb, line 26
def inspect
  'Solr Search'
end
remove(*objects) click to toggle source
# File lib/sunspot_matchers_testunit/sunspot_session_spy.rb, line 36
def remove(*objects)
end
remove!(*objects) click to toggle source
# File lib/sunspot_matchers_testunit/sunspot_session_spy.rb, line 39
def remove!(*objects)
end
remove_all(clazz = nil) click to toggle source
# File lib/sunspot_matchers_testunit/sunspot_session_spy.rb, line 48
def remove_all(clazz = nil)
end
remove_all!(clazz = nil) click to toggle source
# File lib/sunspot_matchers_testunit/sunspot_session_spy.rb, line 51
def remove_all!(clazz = nil)
end
remove_by_id(clazz, id) click to toggle source
# File lib/sunspot_matchers_testunit/sunspot_session_spy.rb, line 42
def remove_by_id(clazz, id)
end
remove_by_id!(clazz, id) click to toggle source
# File lib/sunspot_matchers_testunit/sunspot_session_spy.rb, line 45
def remove_by_id!(clazz, id)
end
setup_for_types(types) click to toggle source
# File lib/sunspot_matchers_testunit/sunspot_session_spy.rb, line 94
def setup_for_types(types)
  if types.empty?
    raise(ArgumentError, "You must specify at least one type to search")
  end
  if types.length == 1
    Sunspot::Setup.for(types.first)
  else
    Sunspot::CompositeSetup.for(types)
  end
end