[rubygems/rubygems] Fix string match in test

82554f2bfd
This commit is contained in:
Ian Ker-Seymer 2022-12-07 00:11:39 -05:00 committed by git
parent 554161236a
commit ef50934721

View file

@ -57,7 +57,7 @@ class TestGemExtCargoBuilder < Gem::TestCase
output = output.join "\n" output = output.join "\n"
bundle = File.join(@dest_path, "release/rust_ruby_example.#{RbConfig::CONFIG['DLEXT']}") bundle = File.join(@dest_path, "release/rust_ruby_example.#{RbConfig::CONFIG['DLEXT']}")
assert_match "Finished release [optimized] target(s)", output assert_match "Finished\e[0m release [optimized] target(s)", output
assert_ffi_handle bundle, "Init_rust_ruby_example" assert_ffi_handle bundle, "Init_rust_ruby_example"
rescue Exception => e rescue Exception => e
pp output if output pp output if output