Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Pass command to search_options on test environment

  • Loading branch information...
commit a84f4e4f402c72ec2339589617f954996c9bf640 1 parent 5b058bc
Saulius Grigaliunas saulius authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 config/environments/test.rb
5 config/environments/test.rb
View
@@ -47,7 +47,10 @@
# Run on different port then default 9200 in order to avoid
# conflicts with other environments
tariff.search_port = 9350
- tariff.search_options = { log: false }
+ tariff.search_options = {
+ log: false,
+ command: `which elasticsearch`.strip
+ }
# We need search index to be refreshed after each operation
# in order to assert record presence in the index (in integration specs)
# Elasticsearch has a 1 second interval between index refreshes
Please sign in to comment.
Something went wrong with that request. Please try again.