Sha256: 4de88d639cfefaa6b5447c3ea44a03de308aab25b1f74c70f2a6b8707cb43d43

Contents?: true

Size: 317 Bytes

Versions: 7

Compression:

Stored size: 317 Bytes

Contents

require File.expand_path('../spec_helper', File.dirname(__FILE__))

describe 'stored fields' do
  before :all do
    Sunspot.remove_all
    Sunspot.index!(Post.new(:title => 'A Title'))
  end

  it 'should return stored fields' do
    expect(Sunspot.search(Post).hits.first.stored(:title)).to eq('A Title')
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sunspot-2.7.1 spec/integration/stored_fields_spec.rb
sunspot-2.7.0 spec/integration/stored_fields_spec.rb
sunspot-2.6.0 spec/integration/stored_fields_spec.rb
sunspot-2.5.0 spec/integration/stored_fields_spec.rb
sunspot-2.4.0 spec/integration/stored_fields_spec.rb
sunspot-2.3.0 spec/integration/stored_fields_spec.rb
sunspot-2.2.8 spec/integration/stored_fields_spec.rb