debian-mirror-gitlab/elasticsearch-rails/elasticsearch-model/spec/elasticsearch/model/hash_wrapper_spec.rb
2021-03-05 16:19:46 +05:30

12 lines
311 B
Ruby

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