summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_ext_cmake_builder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_ext_cmake_builder.rb')
-rw-r--r--test/rubygems/test_gem_ext_cmake_builder.rb10
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