diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-03-24 19:51:43 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-03-30 12:42:10 +0900 |
commit | ba9dcdab3669f11b2e265712ceb43227c366fc3b (patch) | |
tree | e6aa19535d1b3388c9303497e1dc649e9e804ed8 /test/rubygems/test_gem_ext_cmake_builder.rb | |
parent | f987302cf4a59944e5f01572d8ac36bbdbbc97cc (diff) |
[rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems
So it matches the style used by bundler.
https://github.com/rubygems/rubygems/commit/ab0580fd65
Diffstat (limited to 'test/rubygems/test_gem_ext_cmake_builder.rb')
-rw-r--r-- | test/rubygems/test_gem_ext_cmake_builder.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/rubygems/test_gem_ext_cmake_builder.rb b/test/rubygems/test_gem_ext_cmake_builder.rb index f7dc383fe9..0eb1a4c0f5 100644 --- a/test/rubygems/test_gem_ext_cmake_builder.rb +++ b/test/rubygems/test_gem_ext_cmake_builder.rb @@ -43,11 +43,11 @@ install (FILES test.txt DESTINATION bin) output = output.join "\n" assert_match \ - %r%^cmake \. -DCMAKE_INSTALL_PREFIX=#{Regexp.escape @dest_path}%, output - assert_match %r%#{Regexp.escape @ext}%, output + %r{^cmake \. -DCMAKE_INSTALL_PREFIX=#{Regexp.escape @dest_path}}, output + assert_match %r{#{Regexp.escape @ext}}, output assert_contains_make_command '', output assert_contains_make_command 'install', output - assert_match %r%test\.txt%, output + assert_match %r{test\.txt}, output end def test_self_build_fail @@ -66,8 +66,8 @@ install (FILES test.txt DESTINATION bin) assert_match 'cmake failed', error.message - assert_match %r%^#{sh_prefix_cmake}#{Regexp.escape @dest_path}%, output - assert_match %r%#{shell_error_msg}%, output + assert_match %r{^#{sh_prefix_cmake}#{Regexp.escape @dest_path}}, output + assert_match %r{#{shell_error_msg}}, output end def test_self_build_has_makefile |