Skip to content

Commit eaff378

Browse files
committed
Allow index to be created on request
1 parent 046d67b commit eaff378

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/support/books_contexts.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
RSpec.shared_context 'search books with genre' do
4-
let(:index) { client.create_index('books') }
4+
let(:index) { client.index('books') }
55
let(:documents) do
66
[
77
{ objectId: 123, title: 'Pride and Prejudice', genre: 'romance' },
@@ -21,7 +21,7 @@
2121
end
2222

2323
RSpec.shared_context 'search books with author, genre, year' do
24-
let(:index) { client.create_index('books') }
24+
let(:index) { client.index('books') }
2525
let(:documents) do
2626
[
2727
{

0 commit comments

Comments
 (0)