mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 23:53:15 +01:00
Configure rspec for elasticsearch
This commit is contained in:
parent
d790e97535
commit
9d1ab75015
2 changed files with 6 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe SearchController, type: :controller do
|
RSpec.describe SearchController, type: :controller, elasticsearch: true do
|
||||||
|
|
||||||
describe "GET #index" do
|
describe "GET #index" do
|
||||||
it "returns http success" do
|
it "returns http success" do
|
||||||
|
|
5
spec/support/elasticsearch.rb
Normal file
5
spec/support/elasticsearch.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
RSpec.configure do |config|
|
||||||
|
config.before :each, elasticsearch: true do
|
||||||
|
Paper.__elasticsearch__.create_index!(force: true)
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue