Sha256: 0dfa17977ff56c11b81c3e1bddb03cfbcd789cb6af4cdf18b7a2cb43aa79f7d7

Contents?: true

Size: 244 Bytes

Versions: 55

Compression:

Stored size: 244 Bytes

Contents

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

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

Version data entries

55 entries across 55 versions & 13 rubygems

Version Path
sunspot-1.0.0 spec/integration/stored_fields_spec.rb
sunspot-0.10.9 spec/integration/stored_fields_spec.rb
sunspot-0.10.8 spec/integration/stored_fields_spec.rb
nxa-sunspot-0.10.7 spec/integration/stored_fields_spec.rb
sunspot-0.10.7 spec/integration/stored_fields_spec.rb
sunspot-0.10.6 spec/integration/stored_fields_spec.rb
sunspot-0.10.5 spec/integration/stored_fields_spec.rb
sunspot-0.10.4 spec/integration/stored_fields_spec.rb
kuahyeow-sunspot-0.10.3 spec/integration/stored_fields_spec.rb
sunspot-0.10.3 spec/integration/stored_fields_spec.rb
sunspot-0.10.2 spec/integration/stored_fields_spec.rb
sunspot-0.10.1 spec/integration/stored_fields_spec.rb
sunspot-0.10.0 spec/integration/stored_fields_spec.rb
sunspot-0.9.8 spec/integration/stored_fields_spec.rb
sunspot-0.9.7 spec/integration/stored_fields_spec.rb