diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b38bc6d2..c0bf4b0b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Deprecated ### Removed ### Fixed +- Fixed variable name in `OpenSearch::Client#respond_to_missing?` ([#247](https://github.com/opensearch-project/opensearch-ruby/pull/247)) ### Security ## [3.2.0] diff --git a/spec/opensearch/client/unit/opensearch_client_spec.rb b/spec/opensearch/client/unit/opensearch_client_spec.rb new file mode 100644 index 000000000..635185e51 --- /dev/null +++ b/spec/opensearch/client/unit/opensearch_client_spec.rb @@ -0,0 +1,9 @@ +require_relative '../../../spec_helper' + +describe 'OpenSearch::Client#respond_to_missing?' do + it 'returns to correct results' do + client = OpenSearch::Client.new + expect(client.send(:respond_to_missing?, :perform_request)).to be true + expect(client.send(:respond_to_missing?, :something_else)).to be false + end +end