From f1a20e61425c0e88691f4fef3d2d4c97b955da3f Mon Sep 17 00:00:00 2001 From: apainintheneck Date: Sat, 18 Nov 2023 00:46:46 -0800 Subject: [PATCH] Fix tests --- .github/workflows/docs.yml | 2 +- exe/atlasq | 3 +++ test/test_helper.rb | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index f74b5a0..62e58f8 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -17,4 +17,4 @@ jobs: bundler-cache: true - name: Outdated readme check - run: bundle exec readme:outdated + run: bundle exec rake readme:outdated diff --git a/exe/atlasq b/exe/atlasq index 6d5573b..2cb11d2 100755 --- a/exe/atlasq +++ b/exe/atlasq @@ -5,6 +5,9 @@ debug = true if ARGV.delete("-d") debug = true if ARGV.delete("--debug") ENV["ATLASQ_DEBUG"] = "1" if debug +# Avoid warnings on Ruby 2.7 related to pattern matching. +Warning[:experimental] = false + $LOAD_PATH.unshift File.expand_path("../lib", __dir__) require "atlasq" diff --git a/test/test_helper.rb b/test/test_helper.rb index 8211a0d..a5033c6 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,5 +1,6 @@ # frozen_string_literal: true +# Avoid accidental debug output causing test failures. ENV.delete("ATLASQ_DEBUG") $LOAD_PATH.unshift File.expand_path("../lib", __dir__)