Skip to content

Commit

Permalink
Elasticsearch integration spec fix (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
jitendra1998 committed Apr 12, 2020
1 parent 2fe396e commit c066135
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/integration/elasticsearch/integration_spec.rb
Expand Up @@ -14,12 +14,16 @@ class MyModel < Hashie::Mash

index_name 'model'
document_type 'model'

def as_indexed_json(options = {})
{ body: '{}' }.merge(options)
end
end

RSpec.describe 'elaasticsearch-model' do
# See https://github.com/hashie/hashie/issues/354#issuecomment-363306114
# for the reason why this doesn't work as you would expect
it 'raises an error when the model does has an id' do
it 'raises an error when the model does not have an id' do
object = MyModel.new
stub_elasticsearch_client

Expand Down

0 comments on commit c066135

Please sign in to comment.