stadtratmonitor/spec/support/elasticsearch.rb

9 lines
243 B
Ruby
Raw Normal View History

2020-03-09 11:27:52 +01:00
# frozen_string_literal: true
2016-02-17 20:46:03 +01:00
RSpec.configure do |config|
config.before :each, elasticsearch: true do
Paper.__elasticsearch__.create_index!(force: true)
2020-03-09 11:27:52 +01:00
Elasticsearch::Model.client.cluster.health wait_for_status: 'yellow'
2016-02-17 20:46:03 +01:00
end
end