diff options
author | Ian Ker-Seymer <ian.kerseymer@shopify.com> | 2022-12-07 00:15:02 -0500 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-12-07 11:31:25 +0000 |
commit | 88497b2167b88bb7e4f17cb5f2f74f8314d6d45d (patch) | |
tree | 2175f4694d353fea94cfd31b386713cd1b09d8d8 /test/rubygems | |
parent | ef50934721e86e4e02623959ee4a27ec53864dcc (diff) | |
download | ruby-88497b2167b88bb7e4f17cb5f2f74f8314d6d45d.tar.gz |
[rubygems/rubygems] Better tests are better
https://github.com/rubygems/rubygems/commit/17abb80c2c
Diffstat (limited to 'test/rubygems')
-rw-r--r-- | test/rubygems/test_gem_ext_cargo_builder.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_ext_cargo_builder.rb b/test/rubygems/test_gem_ext_cargo_builder.rb index e69d351645..e5bad0bcbc 100644 --- a/test/rubygems/test_gem_ext_cargo_builder.rb +++ b/test/rubygems/test_gem_ext_cargo_builder.rb @@ -57,7 +57,8 @@ class TestGemExtCargoBuilder < Gem::TestCase output = output.join "\n" bundle = File.join(@dest_path, "release/rust_ruby_example.#{RbConfig::CONFIG['DLEXT']}") - assert_match "Finished\e[0m release [optimized] target(s)", output + assert_match(/Finished/, output) + assert_match(/release/, output) assert_ffi_handle bundle, "Init_rust_ruby_example" rescue Exception => e pp output if output |