Merge branch '21383-misc-fixes'. Refs #21383
[arvados.git] / services / api / test / integration / bundler_version_test.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 require 'test_helper'
6
7 class BundlerVersionTest < ActionDispatch::IntegrationTest
8   test "Bundler version matches expectations" do
9     # The expected version range should be the latest that supports all the
10     # versions of Ruby we intend to support. This test checks that a developer
11     # doesn't accidentally update Bundler past that point.
12     expected = Gem::Dependency.new("", "~> 2.4.22")
13     actual = Bundler.gem_version
14     assert(
15       expected.match?("", actual),
16       "Bundler version #{actual} did not match #{expected}",
17     )
18   end
19 end