Skip to content

Commit

Permalink
test(bosh-cli-v2-cf-cli): 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 4516f4d commit 0281530
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bosh-cli-v2-cf-cli/bosh-cli-v2-cf-cli_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
BOSH_ENV_DEPS = "build-essential zlib1g-dev openssl libxslt1-dev libxml2-dev \
libssl-dev libreadline8 libreadline-dev libyaml-dev libsqlite3-dev sqlite3"
CF_ENV_DEPS = "unzip curl openssl ca-certificates git libc6 bash jq gettext make"
RUBY_VERSION = "3.1"

describe "bosh-cli-v2-cf-cli image" do
before(:all) {
Expand Down Expand Up @@ -68,10 +69,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 0281530

Please sign in to comment.