require 'test_helper' require File.dirname(__FILE__) + '/../test_solr_helper' class TextArticleTest < ActiveSupport::TestCase def setup @environment = Environment.default @environment.enable_plugin(SolrPlugin) end attr_accessor :environment should 'found TextileArticle by TextArticle indexes' do TestSolr.enable person = create_user('testuser').person article = TextileArticle.create!(:name => 'found article test', :profile => person) assert_equal TextileArticle.find_by_contents('found')[:results].docs, TextArticle.find_by_contents('found')[:results].docs end end