Skip to content

Commit

Permalink
Fix warning detection regex on latest ruby-head (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbrictson authored Aug 25, 2024
1 parent c1dfd68 commit 5175211
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/integration/mt_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ def test_mt_runs_watch_mode_that_executes_tests_when_files_change # rubocop:disa
Process.kill(:TERM, pid)
end

# Ignore warning printed to stderr for a known issue with the listen gem
stderr.sub!(/^.*\blisten\.rb.*Add logger to your Gemfile or gemspec\.\n/, "")
# Ignore warnings printed to stderr for a known issue with the listen gem
stderr.sub!(/^.*logger was loaded from the standard library.*\n/i, "")
stderr.sub!(/^.*add logger to your Gemfile or gemspec.*\n/i, "")
assert_empty(stderr)

assert_includes(stdout, "Watching for changes to source and test files.")
Expand Down

0 comments on commit 5175211

Please sign in to comment.