spec/spec_helper.rb in elasticsearch_autocomplete-0.1.5 vs spec/spec_helper.rb in elasticsearch_autocomplete-0.1.6
- old
+ new
@@ -2,15 +2,17 @@
require 'tire'
require 'active_support/core_ext'
require 'elasticsearch_autocomplete'
Tire.configure do
- #logger 'tmp/elasticsearch.log' # Commented out logger line here so that it doesn't break specs when tmp directory doesn't exist.
- url 'http://localhost:9200'
+ # logger 'tmp/elasticsearch.log' # Commented out logger line here so that it doesn't break specs when tmp directory doesn't exist.
+ url "http://localhost:#{ENV['ES_PORT'] || 9200}"
pretty 1
end
I18n.available_locales = [:en, :ru]
+
+# ElasticsearchAutocomplete.elasticsearch_version = '1.x'
class ActiveModelBase
include ActiveModel::AttributeMethods
include ActiveModel::Serialization
include ActiveModel::Serializers::JSON