From 5940d9d0c48407d5668b7ba6c0ad5122a3bba247 Mon Sep 17 00:00:00 2001 From: Benjamin Vetter Date: Fri, 19 Jan 2024 09:13:23 +0100 Subject: [PATCH] Add spec --- spec/search_flip/connection_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/search_flip/connection_spec.rb b/spec/search_flip/connection_spec.rb index 4242883..b566ad2 100644 --- a/spec/search_flip/connection_spec.rb +++ b/spec/search_flip/connection_spec.rb @@ -1,6 +1,12 @@ require File.expand_path("../spec_helper", __dir__) RSpec.describe SearchFlip::Connection do + describe "#distribution" do + it "reutrns the distribution" do + expect([nil, "opensearch"]).to include(SearchFlip::Connection.new.distribution) + end + end + describe "#version" do it "returns the version" do expect(SearchFlip::Connection.new.version).to match(/\A[0-9.]+\z/)