diff --git a/test/integration/mt_test.rb b/test/integration/mt_test.rb index 1613f9b..9051ad6 100644 --- a/test/integration/mt_test.rb +++ b/test/integration/mt_test.rb @@ -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