spec/app-search/client_spec.rb [31:46]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      expect(app_client).not_to be nil
      expect(app_client).to be_a(Elastic::EnterpriseSearch::AppSearch::Client)
      expect(app_client.host).to eq(host)
    end

    it 'sets up authentication during initialization' do
      ent_client = Elastic::EnterpriseSearch::Client.new(host: host)
      app_client = ent_client.app_search(http_auth: api_key)
      expect(app_client.http_auth).to eq api_key
    end

    it 'sets up authentication as a parameter' do
      app_client.http_auth = api_key
      expect(app_client.http_auth).to eq api_key
    end
  end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



spec/app-search/client_spec.rb [52:67]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      expect(app_client).not_to be nil
      expect(app_client).to be_a(Elastic::EnterpriseSearch::AppSearch::Client)
      expect(app_client.host).to eq(host)
    end

    it 'sets up authentication during initialization' do
      ent_client = Elastic::EnterpriseSearch::Client.new(host: host)
      app_client = ent_client.app_search(http_auth: api_key)
      expect(app_client.http_auth).to eq api_key
    end

    it 'sets up authentication as a parameter' do
      app_client.http_auth = api_key
      expect(app_client.http_auth).to eq api_key
    end
  end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



