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/test/test_atlasq.rb b/test/test_atlasq.rb index d5755ae..5dc0603 100644 --- a/test/test_atlasq.rb +++ b/test/test_atlasq.rb @@ -16,7 +16,7 @@ def executable_path # @param expected_stderr [String] # @param expected_status [Integer] def assert_command(args:, expected_stdout: "", expected_stderr: "", expected_status: 0) - stdout, stderr, status = Open3.capture3(executable_path, *args) + stdout, stderr, status = Open3.capture3({ "RUBYOPT" => "-W0" }, executable_path, *args) assert_equal expected_stdout, stdout assert_equal expected_stderr, stderr 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__)