Sha256: 76e772c9fca72190915c2cddb291686da7b6fcf127db05cf4e8f3ed6ea7f7c1f
Contents?: true
Size: 615 Bytes
Versions: 32
Compression:
Stored size: 615 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 it 'should re-execute search' do post_1, post_2 = Post.new, Post.new stub_results(post_1) search = session.search Post search.results.should == [post_1] stub_results(post_2) search.execute! search.results.should == [post_2] end end
Version data entries
32 entries across 32 versions & 7 rubygems