Sha256: 1fe460d4911ee24c5e49f318a4b050150a36d7accb37f750cf54df8de0678f26

Contents?: true

Size: 192 Bytes

Versions: 7

Compression:

Stored size: 192 Bytes

Contents

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

    expect(subject.class.search.results).to include(subject)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sunspot_rails-2.7.1 spec/shared_examples/indexed_after_save.rb
sunspot_rails-2.7.0 spec/shared_examples/indexed_after_save.rb
sunspot_rails-2.6.0 spec/shared_examples/indexed_after_save.rb
sunspot_rails-2.5.0 spec/shared_examples/indexed_after_save.rb
sunspot_rails-2.4.0 spec/shared_examples/indexed_after_save.rb
sunspot_rails-2.3.0 spec/shared_examples/indexed_after_save.rb
sunspot_rails-2.2.8 spec/shared_examples/indexed_after_save.rb