From 0cd033ffcb2fa0c98fc950abbe3f22199f754066 Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 2 Jan 2025 13:02:13 +0100 Subject: [PATCH] test that MAXIMUM_RUBY_VERSION is same for datadog and datadog-ci gems --- spec/datadog/ci/release_gem_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spec/datadog/ci/release_gem_spec.rb b/spec/datadog/ci/release_gem_spec.rb index 785ccdd9..a830bc5c 100644 --- a/spec/datadog/ci/release_gem_spec.rb +++ b/spec/datadog/ci/release_gem_spec.rb @@ -1,5 +1,14 @@ RSpec.describe "gem release process" do context "datadog-ci.gemspec" do + context "maximum Ruby version" do + it "is the same as for gem datadog" do + datadog_version = ::Datadog::VERSION::MAXIMUM_RUBY_VERSION + datadog_ci_version = ::Datadog::CI::VERSION::MAXIMUM_RUBY_VERSION + + expect(datadog_ci_version).to eq(datadog_version) + end + end + context "files" do subject(:files) { Gem::Specification.load("datadog-ci.gemspec").files }