debian-mirror-gitlab/elasticsearch-model/spec/elasticsearch/model/hash_wrapper_spec.rb

13 lines
311 B
Ruby
Raw Normal View History

2020-03-13 15:44:24 +05:30
require 'spec_helper'
describe Elasticsearch::Model::HashWrapper, if: Hashie::VERSION >= '3.5.3' do
before do
expect(Hashie.logger).to receive(:warn).never
end
it 'does not print a warning for re-defined methods' do
Elasticsearch::Model::HashWrapper.new(:foo => 'bar', :sort => true)
end
end