File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
elasticsearch-model/spec/elasticsearch/model/adapters/active_record Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 4141 context 'when a document is indexed' do
4242
4343 let ( :search_result ) do
44- ArticleWithCustomSerialization . __elasticsearch__ . client . get ( index : 'article_with_custom_serializations' ,
45- type : '_doc' ,
46- id : '1' )
44+ ArticleWithCustomSerialization . __elasticsearch__ . client . get (
45+ index : 'article_with_custom_serializations' ,
46+ id : '1'
47+ )
4748 end
4849
4950 it 'applies the serialization when indexing' do
5455 context 'when a document is updated' do
5556
5657 before do
57- article . update_attributes ( title : 'UPDATED' , status : 'yellow' )
58+ article . update ( title : 'UPDATED' , status : 'yellow' )
5859 ArticleWithCustomSerialization . __elasticsearch__ . refresh_index!
5960 end
6061
6566 end
6667
6768 let ( :search_result ) do
68- ArticleWithCustomSerialization . __elasticsearch__ . client . get ( index : 'article_with_custom_serializations' ,
69- type : '_doc' ,
70- id : article . id )
69+ ArticleWithCustomSerialization . __elasticsearch__ . client . get (
70+ index : 'article_with_custom_serializations' ,
71+ id : article . id
72+ )
7173 end
7274
7375 it 'applies the serialization when updating' do
You can’t perform that action at this time.
0 commit comments