Skip to content

Commit

Permalink
test(k8s-tools): extract ruby version to a var
Browse files Browse the repository at this point in the history
So version can be updated by renovate
  • Loading branch information
o-orand committed Jun 12, 2023
1 parent 6efcb4b commit 4c45660
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions k8s-tools/k8s-tools_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
KUBECTL_VERSION="1.24.14" # renovate: datasource=github-tags depName=kubernetes/kubectl
HELM_VERSION="3.12.0" # renovate: datasource=github-releases depName=helm/helm
KUTTL_VERSION="0.15.0" # renovate: datasource=github-releases depName=kudobuilder/kuttl
RUBY_VERSION = "3.1"

DEPS = "unzip curl openssl ca-certificates git libc6 bash jq gettext"

Expand Down Expand Up @@ -89,10 +90,10 @@
expect(cmd.exit_status).to eq(0)
end

it "has ruby 3.1 available" do
it "has ruby #{RUBY_VERSION} available" do
cmd = command("ruby -v")
expect(cmd.exit_status).to eq(0)
expect(cmd.stdout).to match(/^ruby 3.1/)
expect(cmd.stdout).to match(/^ruby #{RUBY_VERSION}/)
end

it "has ruby json gem available" do
Expand Down

0 comments on commit 4c45660

Please sign in to comment.