Sha256: 1114540ea0042b71806c93005329e0fa2039c2f14488ff271de2ff44450b6ef7

Contents?: true

Size: 312 Bytes

Versions: 37

Compression:

Stored size: 312 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
    Sunspot.search(Post).hits.first.stored(:title).should == 'A Title'
  end
end

Version data entries

37 entries across 37 versions & 7 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/sunspot-2.2.7/spec/integration/stored_fields_spec.rb
sunspot-2.2.7 spec/integration/stored_fields_spec.rb
sunspot-2.2.6 spec/integration/stored_fields_spec.rb
sunspot-2.2.5 spec/integration/stored_fields_spec.rb
sunspot-2.2.4 spec/integration/stored_fields_spec.rb
sunspot-2.2.3 spec/integration/stored_fields_spec.rb
sunspot-2.2.2 spec/integration/stored_fields_spec.rb
sunspot-2.2.1 spec/integration/stored_fields_spec.rb
sunspot-2.2.0 spec/integration/stored_fields_spec.rb
sunspot-2.1.1 spec/integration/stored_fields_spec.rb
sunspot-2.1.0 spec/integration/stored_fields_spec.rb
sunspot-2.0.0 spec/integration/stored_fields_spec.rb
sunspot-2.0.0.pre.130115 spec/integration/stored_fields_spec.rb
gojee-sunspot-2.0.5 spec/integration/stored_fields_spec.rb
sunspot-2.0.0.pre.120925 spec/integration/stored_fields_spec.rb
sunspot_solr-2.0.0.pre.120924 sunspot/spec/integration/stored_fields_spec.rb
sunspot_rails-2.0.0.pre.120924 sunspot/spec/integration/stored_fields_spec.rb
sunspot-2.0.0.pre.120924 sunspot/spec/integration/stored_fields_spec.rb
gojee-sunspot-2.0.4 spec/integration/stored_fields_spec.rb
gojee-sunspot-2.0.2 spec/integration/stored_fields_spec.rb