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
sunspot-2.0.0.pre.120720 spec/integration/stored_fields_spec.rb
sunspot-1.3.3 spec/integration/stored_fields_spec.rb
sunspot-1.3.2 spec/integration/stored_fields_spec.rb
sunspot-2.0.0.pre.120417 spec/integration/stored_fields_spec.rb
sunspot-2.0.0.pre.120415 spec/integration/stored_fields_spec.rb
sunspot-1.3.1 spec/integration/stored_fields_spec.rb
erichummel-sunspot-2.0.0.pre.111215d spec/integration/stored_fields_spec.rb
erichummel-sunspot-2.0.0.pre.111215c spec/integration/stored_fields_spec.rb
erichummel-sunspot-2.0.0.pre.111215b spec/integration/stored_fields_spec.rb
erichummel-sunspot-2.0.0.pre.111215a spec/integration/stored_fields_spec.rb
erichummel-sunspot-2.0.0.pre.111215 spec/integration/stored_fields_spec.rb
sunspot-2.0.0.pre.111215 spec/integration/stored_fields_spec.rb
cb_sunspot-2.0.0.pre.5 spec/integration/stored_fields_spec.rb
cb_sunspot-2.0.0.pre.3 spec/integration/stored_fields_spec.rb
cb_sunspot-2.0.0.pre3 spec/integration/stored_fields_spec.rb
sunspot-1.3.0 spec/integration/stored_fields_spec.rb
sunspot-1.3.0.rc6 spec/integration/stored_fields_spec.rb