Skip to content
Permalink
Browse files

Wordnet test [skip ci]

  • Loading branch information...
ankane committed Apr 12, 2019
1 parent 7ce0440 commit bab97d5a9595ee38d4dda83318edb04c3f98b970
Showing with 5 additions and 2 deletions.
  1. +2 −2 test/models/animal.rb
  2. +3 −0 test/test_helper.rb
@@ -4,6 +4,6 @@ class Animal
text_start: [:name],
suggest: [:name],
index_name: -> { "#{name.tableize}-#{Date.today.year}#{Searchkick.index_suffix}" },
callbacks: defined?(ActiveJob) ? :async : true
# wordnet: true
callbacks: defined?(ActiveJob) ? :async : true,
wordnet: ENV["WORDNET"]
end
@@ -14,6 +14,9 @@
Searchkick.search_timeout = 5
Searchkick.index_suffix = ENV["TEST_ENV_NUMBER"] # for parallel tests

# add to elasticsearch-7.0.0/config/
Searchkick.wordnet_path = "wn_s.pl" if ENV["WORDNET"]

puts "Running against Elasticsearch #{Searchkick.server_version}"

if defined?(Redis)

0 comments on commit bab97d5

Please sign in to comment.
You can’t perform that action at this time.