Skip to content

Commit

Permalink
Fix failing test due to listen gem warning on Ruby 3.4 (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbrictson authored Jul 2, 2024
1 parent ac374d1 commit 62cbb5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/integration/mt_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,11 @@ def test_mt_runs_watch_mode_that_executes_tests_when_files_change # rubocop:disa
Process.kill(:TERM, pid)
end

assert_includes(stdout, "Watching for changes to source and test files.")
# 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/, "")
assert_empty(stderr)

assert_includes(stdout, "Watching for changes to source and test files.")
assert_match(/ExampleTest/, stdout)
assert_match(/\d runs, \d assertions, 0 failures, 0 errors/, stdout)
end
Expand Down

0 comments on commit 62cbb5d

Please sign in to comment.