Sha256: 4407b833084f0632a5505fc11c593f21f89ccb3b062cb8a3a5d08368caa19f63
Contents?: true
Size: 559 Bytes
Versions: 11
Compression:
Stored size: 559 Bytes
Contents
require File.expand_path('spec_helper', File.dirname(__FILE__)) describe Sunspot::Rails::Searchable do describe '#searchable' do it "should register models with Sunspot.searchable (via Sunspot.setup)" do # Rspec runs tests in random order, causing this test to fail on occasion unless we ensure the models have loaded. Author; Blog; Post; Sunspot.searchable.should_not be_empty Sunspot.searchable.should include(Author) Sunspot.searchable.should include(Blog) Sunspot.searchable.should include(Post) end end end
Version data entries
11 entries across 11 versions & 2 rubygems