Module: Sunspot::Rails::Spec::ClassMethods

Defined in:
lib/sunspot/spec/extension.rb

Instance Method Summary collapse

Instance Method Details

#integrate_sunspot(integrate = true) ⇒ Object



25
26
27
# File 'lib/sunspot/spec/extension.rb', line 25

def integrate_sunspot( integrate = true )
  self.sunspot_integration = integrate
end

#integrate_sunspot?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/sunspot/spec/extension.rb', line 29

def integrate_sunspot?
  !!self.sunspot_integration
end