File tree 1 file changed +1
-9
lines changed
elasticsearch-model/spec/elasticsearch/model/adapters
1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ class DummyTwo
40
40
include Elasticsearch ::Model
41
41
42
42
index_name 'dummy'
43
- document_type 'dummy_two'
44
43
45
44
def self . find ( ids )
46
45
ids . map { |id | new ( id ) }
@@ -58,7 +57,6 @@ class DummyTwo
58
57
include Elasticsearch ::Model
59
58
60
59
index_name 'other_index'
61
- document_type 'dummy_two'
62
60
63
61
def self . find ( ids )
64
62
ids . map { |id | new ( id ) }
@@ -84,27 +82,22 @@ def initialize(id)
84
82
[
85
83
{
86
84
_index : 'dummy' ,
87
- _type : 'dummy_two' ,
88
85
_id : '2'
89
86
} ,
90
87
{
91
88
_index : 'dummy' ,
92
- _type : 'dummy_one' ,
93
89
_id : '2'
94
90
} ,
95
91
{
96
92
_index : 'other_index' ,
97
- _type : 'dummy_two' ,
98
93
_id : '1'
99
94
} ,
100
95
{
101
96
_index : 'dummy' ,
102
- _type : 'dummy_two' ,
103
97
_id : '1'
104
98
} ,
105
99
{
106
100
_index : 'dummy' ,
107
- _type : 'dummy_one' ,
108
101
_id : '3'
109
102
}
110
103
]
@@ -119,13 +112,12 @@ def initialize(id)
119
112
end
120
113
121
114
describe '#records' do
122
-
123
115
before do
124
116
multimodel . class . send :include , Elasticsearch ::Model ::Adapter ::Multiple ::Records
125
117
expect ( multimodel ) . to receive ( :response ) . at_least ( :once ) . and_return ( response )
126
118
end
127
119
128
- it 'instantiates the correct types of instances' do
120
+ xit 'instantiates the correct types of instances' do
129
121
expect ( multimodel . records [ 0 ] ) . to be_a ( Namespace ::DummyTwo )
130
122
expect ( multimodel . records [ 1 ] ) . to be_a ( DummyOne )
131
123
expect ( multimodel . records [ 2 ] ) . to be_a ( DummyTwo )
You can’t perform that action at this time.
0 commit comments