Skip to content
Snippets Groups Projects
Commit c6556443 authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

fixing searchkiq index

parent 8f69ba7f
No related branches found
No related tags found
No related merge requests found
......@@ -4,8 +4,7 @@ class V1::SearchControllerTest < ActionController::TestCase
tests V1::SearchController
setup do
LearningObject.reindex
LearningObject.searchkick_index.refresh
SearchService::SEARCH_CLASSES.each {|search_class| reindex search_class.constantize}
auth_application
end
......@@ -26,4 +25,11 @@ class V1::SearchControllerTest < ActionController::TestCase
assert_response :bad_request
end
private
def reindex(klass)
klass.reindex
klass.searchkick_index.refresh
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment