debian-mirror-gitlab/elasticsearch-model/spec/elasticsearch/model/hash_wrapper_spec.rb
2020-03-09 13:42:32 +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