Skip to content

Commit beb8538

Browse files
author
Michael Chen
committed
fix spec to cover this case
1 parent 12371b4 commit beb8538

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

elasticsearch-model/spec/elasticsearch/model/module_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,15 @@
4242
before(:all) do
4343
class ::DummyIncludingModel; end
4444
class ::DummyIncludingModelWithSearchMethodDefined
45+
46+
4547
def self.search(query, options={})
4648
"SEARCH"
4749
end
4850
end
4951

5052
DummyIncludingModel.__send__ :include, Elasticsearch::Model
53+
DummyIncludingModelWithSearchMethodDefined.__send__ :include, Elasticsearch::Model
5154
end
5255

5356
after(:all) do

0 commit comments

Comments
 (0)