Skip to content

Commit

Permalink
test(bosh-cli-v2): 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 13, 2023
1 parent 4c45660 commit 4516f4d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bosh-cli-v2/bosh-cli-v2_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

BOSH_CLI_VERSION="7.2.3" # renovate: datasource=github-releases depName=cloudfoundry/bosh-cli
CREDHUB_CLI_VERSION='2.9.16' # renovate: datasource=github-releases depName=cloudfoundry/credhub-cli
RUBY_VERSION = "3.1"

BOSH_ENV_DEPS = "build-essential zlib1g-dev openssl libxslt1-dev libxml2-dev \
libssl-dev libreadline8 libreadline-dev libyaml-dev libsqlite3-dev sqlite3"
Expand Down Expand Up @@ -82,10 +83,10 @@
end
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 "does not contain the compiled CPI packages" do
Expand Down

0 comments on commit 4516f4d

Please sign in to comment.