Sha256: e15755456d6f6e598971f5aab7d31faf26d52bbaf36fb421bf733878eda2d309

Contents?: true

Size: 342 Bytes

Versions: 2

Compression:

Stored size: 342 Bytes

Contents

require File.join(File.dirname(__FILE__), 'spec_helper')

describe Sunspot::Search do
  it 'should allow access to the data accessor' do
    stub_results(posts = Post.new)
    search = session.search Post do
      data_accessor_for(Post).custom_title = 'custom title'
    end
    search.results.first.title.should == 'custom title'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
benjaminkrause-sunspot-0.9.7 spec/api/search/search_spec.rb
benjaminkrause-sunspot-0.9.8 spec/api/search/search_spec.rb