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 ...@@ -4,8 +4,7 @@ class V1::SearchControllerTest < ActionController::TestCase
tests V1::SearchController tests V1::SearchController
setup do setup do
LearningObject.reindex SearchService::SEARCH_CLASSES.each {|search_class| reindex search_class.constantize}
LearningObject.searchkick_index.refresh
auth_application auth_application
end end
...@@ -26,4 +25,11 @@ class V1::SearchControllerTest < ActionController::TestCase ...@@ -26,4 +25,11 @@ class V1::SearchControllerTest < ActionController::TestCase
assert_response :bad_request assert_response :bad_request
end end
private
def reindex(klass)
klass.reindex
klass.searchkick_index.refresh
end
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