spec/elasticsearch/model/proxy_spec.rb in elasticsearch-model-7.2.1 vs spec/elasticsearch/model/proxy_spec.rb in elasticsearch-model-8.0.0.pre

- old
+ new

@@ -16,11 +16,10 @@ # under the License. require 'spec_helper' describe Elasticsearch::Model::Proxy do - before(:all) do class ::DummyProxyModel include Elasticsearch::Model::Proxy def self.foo @@ -121,12 +120,11 @@ it 'resets the proxy target' do expect(model).not_to eq(duplicate) expect(model).to eq(model_target) expect(duplicate).to eq(duplicate_target) end - end - it 'forwards keyword arguments to target methods' do - expect(DummyProxyModel.new.__elasticsearch__.keyword_method(foo: 'bar')).to eq('bar') + it 'forwards keyword arguments to target methods' do + expect(DummyProxyModel.new.__elasticsearch__.keyword_method(foo: 'bar')).to eq('bar') + end end - end