2128c105cd510e398b547cac72839863492d75ff
[arvados.git] / services / api / test / integration / gemfile_lock_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 GemfileLockTest < ActionDispatch::IntegrationTest
8   # Like the assertion message says, refer to Gemfile for this test's
9   # rationale. This test can go away once we start supporting Ruby 3.4+.
10   test "base64 gem is not locked to a specific version" do
11     gemfile_lock_path = Rails.root.join("Gemfile.lock")
12     File.open(gemfile_lock_path) do |f|
13       assert_equal(
14         f.each_line.any?(/^\s*base64\s+\(/),
15         false,
16         "Gemfile.lock includes a specific version of base64 - revert and refer to the comments in Gemfile",
17       )
18     end
19   end
20 end