File tree 1 file changed +9
-7
lines changed
elasticsearch-model/spec/elasticsearch/model/adapters/active_record
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 41
41
context 'when a document is indexed' do
42
42
43
43
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
+ )
47
48
end
48
49
49
50
it 'applies the serialization when indexing' do
54
55
context 'when a document is updated' do
55
56
56
57
before do
57
- article . update_attributes ( title : 'UPDATED' , status : 'yellow' )
58
+ article . update ( title : 'UPDATED' , status : 'yellow' )
58
59
ArticleWithCustomSerialization . __elasticsearch__ . refresh_index!
59
60
end
60
61
65
66
end
66
67
67
68
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
+ )
71
73
end
72
74
73
75
it 'applies the serialization when updating' do
You can’t perform that action at this time.
0 commit comments