File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 5454 context 'with integration' , :integration do
5555 let ( :integration_schema ) do
5656 {
57- 'name' => 'companies ' ,
57+ 'name' => 'integration_companies ' ,
5858 'num_documents' => 0 ,
5959 'fields' => [
6060 {
136136 before do
137137 WebMock . disable!
138138 begin
139- integration_client . collections [ 'companies ' ] . delete
139+ integration_client . collections [ 'integration_companies ' ] . delete
140140 rescue Typesense ::Error ::ObjectNotFound
141141 # Collection doesn't exist, which is fine
142142 end
143143 end
144144
145145 after do
146146 begin
147- integration_client . collections [ 'companies ' ] . delete
147+ integration_client . collections [ 'integration_companies ' ] . delete
148148 rescue Typesense ::Error ::ObjectNotFound
149149 # Collection doesn't exist, which is fine
150150 end
154154 it 'creates a collection on a real Typesense server' do
155155 result = integration_client . collections . create ( integration_schema )
156156
157- expect ( result [ 'name' ] ) . to eq ( 'companies ' )
157+ expect ( result [ 'name' ] ) . to eq ( 'integration_companies ' )
158158 expect ( result [ 'fields' ] ) . to eq ( expected_fields )
159159 expect ( result [ 'default_sorting_field' ] ) . to eq ( integration_schema [ 'default_sorting_field' ] )
160160 expect ( result [ 'num_documents' ] ) . to eq ( 0 )
You can’t perform that action at this time.
0 commit comments