Skip to content

Commit

Permalink
Merge pull request #3303 from rubygems/martinemde/cleanup-es-index-cr…
Browse files Browse the repository at this point in the history
…eation-in-tests

Create ES index in search_test before relying on it
  • Loading branch information
simi authored Dec 23, 2022
2 parents 7846ee1 + 2066aa0 commit c3e5226
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/integration/search_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
class SearchTest < SystemTest
include ESHelper

setup do
Rubygem.__elasticsearch__.create_index! force: true
end

test "searching for a gem" do
create(:rubygem, name: "LDAP", number: "1.0.0")
create(:rubygem, name: "LDAP-PLUS", number: "1.0.0")
Expand Down

0 comments on commit c3e5226

Please sign in to comment.