Sha256: 7c3aae3f8274124ecd7293972bdadb436ae522fa9df50cafb75de52c5e93159a

Contents?: true

Size: 204 Bytes

Versions: 7

Compression:

Stored size: 204 Bytes

Contents

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

    expect(subject.class.search.results).not_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/not_indexed_after_save.rb
sunspot_rails-2.7.0 spec/shared_examples/not_indexed_after_save.rb
sunspot_rails-2.6.0 spec/shared_examples/not_indexed_after_save.rb
sunspot_rails-2.5.0 spec/shared_examples/not_indexed_after_save.rb
sunspot_rails-2.4.0 spec/shared_examples/not_indexed_after_save.rb
sunspot_rails-2.3.0 spec/shared_examples/not_indexed_after_save.rb
sunspot_rails-2.2.8 spec/shared_examples/not_indexed_after_save.rb