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

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/sunspot_rails-2.2.7/spec/searchable_spec.rb
sunspot_rails-2.2.7 spec/searchable_spec.rb
sunspot_rails-2.2.6 spec/searchable_spec.rb
sunspot_rails-2.2.5 spec/searchable_spec.rb
sunspot_rails-2.2.4 spec/searchable_spec.rb
sunspot_rails-2.2.3 spec/searchable_spec.rb
sunspot_rails-2.2.2 spec/searchable_spec.rb
sunspot_rails-2.2.1 spec/searchable_spec.rb
sunspot_rails-2.2.0 spec/searchable_spec.rb
sunspot_rails-2.1.1 spec/searchable_spec.rb
sunspot_rails-2.1.0 spec/searchable_spec.rb