Sha256: acfba9cb7ee5ef00d4bf1d14fd9c9db566b7bc3a9d5e11493ac9c04cd84ab6c3

Contents?: true

Size: 188 Bytes

Versions: 38

Compression:

Stored size: 188 Bytes

Contents

shared_examples_for 'indexed after save' do
  it 'should be indexed after save' do
    subject.save!
    Sunspot.commit

    subject.class.search.results.should include(subject)
  end
end

Version data entries

38 entries across 38 versions & 8 rubygems

Version Path
gojee-sunspot-rails-2.0.2 spec/shared_examples/indexed_after_save.rb
sunspot_rails-2.0.0.pre.120720 spec/shared_examples/indexed_after_save.rb
sunspot_rails-1.3.3 spec/shared_examples/indexed_after_save.rb
sunspot_rails-1.3.2 spec/shared_examples/indexed_after_save.rb
sunspot_rails-2.0.0.pre.120417 spec/shared_examples/indexed_after_save.rb
sunspot_rails-2.0.0.pre.120415 spec/shared_examples/indexed_after_save.rb
sunspot_rails-1.3.1 spec/shared_examples/indexed_after_save.rb
erichummel-sunspot_rails-2.0.0.pre.111215d spec/shared_examples/indexed_after_save.rb
erichummel-sunspot_rails-2.0.0.pre.111215c spec/shared_examples/indexed_after_save.rb
erichummel-sunspot_rails-2.0.0.pre.111215b spec/shared_examples/indexed_after_save.rb
erichummel-sunspot_rails-2.0.0.pre.111215a spec/shared_examples/indexed_after_save.rb
erichummel-sunspot_rails-2.0.0.pre.111215 spec/shared_examples/indexed_after_save.rb
sunspot_rails-2.0.0.pre.111215 spec/shared_examples/indexed_after_save.rb
cb_sunspot_rails-2.0.0.pre.5 spec/shared_examples/indexed_after_save.rb
cb_sunspot_rails-2.0.0.pre.3 spec/shared_examples/indexed_after_save.rb
cb_sunspot_rails-2.0.0.pre3 spec/shared_examples/indexed_after_save.rb
sunspot_rails-1.3.0 spec/shared_examples/indexed_after_save.rb
sunspot_rails-1.3.0.rc6 spec/shared_examples/indexed_after_save.rb