Skip to content

Commit

Permalink
Add spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkamel committed Jan 19, 2024
1 parent ea5dff8 commit 5940d9d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/search_flip/connection_spec.rb
Original file line number Diff line number Diff line change
@@ -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/)
Expand Down

0 comments on commit 5940d9d

Please sign in to comment.