Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing test due to listen gem warning on Ruby 3.4 #36

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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