Skip to content

Instantly share code, notes, and snippets.

@vanstee
Created August 3, 2011 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanstee/1123764 to your computer and use it in GitHub Desktop.
Save vanstee/1123764 to your computer and use it in GitHub Desktop.
setup do
@company = Factory(:company, :company_name => "Highgroove Studios", :marketing_alias => "Genius Wolf Brains", :state => "GA")
@top = Factory(:company, :company_name => "Company HQ", :state => "GA", :company_search_weight => '1', :company_sort_order => '5')
@middle = Factory(:company, :company_name => "Company", :state => "GA", :company_search_weight => '1', :company_sort_order => '5')
@bottom = Factory(:company, :company_name => "Company", :state => "GA", :company_search_weight => '5', :company_sort_order => '1')
Company.solr_index_batch!({})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment