aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_uninstaller.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-24 19:51:43 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-03-30 12:42:10 +0900
commitba9dcdab3669f11b2e265712ceb43227c366fc3b (patch)
treee6aa19535d1b3388c9303497e1dc649e9e804ed8 /test/rubygems/test_gem_uninstaller.rb
parentf987302cf4a59944e5f01572d8ac36bbdbbc97cc (diff)
downloadruby-ba9dcdab3669f11b2e265712ceb43227c366fc3b.tar.gz
[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_uninstaller.rb')
-rw-r--r--test/rubygems/test_gem_uninstaller.rb26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/rubygems/test_gem_uninstaller.rb b/test/rubygems/test_gem_uninstaller.rb
index fc330a6040..9a98c1e590 100644
--- a/test/rubygems/test_gem_uninstaller.rb
+++ b/test/rubygems/test_gem_uninstaller.rb
@@ -27,7 +27,7 @@ class TestGemUninstaller < Gem::InstallerTestCase
FileUtils.mkdir_p 'foo/bar'
uninstaller = Gem::Uninstaller.new nil, :install_dir => 'foo//bar'
- assert_match %r|foo/bar$|, uninstaller.instance_variable_get(:@gem_home)
+ assert_match %r{foo/bar$}, uninstaller.instance_variable_get(:@gem_home)
end
def test_ask_if_ok
@@ -458,12 +458,12 @@ create_makefile '#{@spec.name}'
lines = ui.output.split("\n")
lines.shift
- assert_match %r!You have requested to uninstall the gem:!, lines.shift
+ assert_match %r{You have requested to uninstall the gem:}, lines.shift
lines.shift
lines.shift
- assert_match %r!r-1 depends on q \(= 1\)!, lines.shift
- assert_match %r!Successfully uninstalled q-1!, lines.last
+ assert_match %r{r-1 depends on q \(= 1\)}, lines.shift
+ assert_match %r{Successfully uninstalled q-1}, lines.last
end
def test_uninstall_only_lists_unsatisfied_deps
@@ -488,12 +488,12 @@ create_makefile '#{@spec.name}'
lines = ui.output.split("\n")
lines.shift
- assert_match %r!You have requested to uninstall the gem:!, lines.shift
+ assert_match %r{You have requested to uninstall the gem:}, lines.shift
lines.shift
lines.shift
- assert_match %r!x-1 depends on q \(= 1.0\)!, lines.shift
- assert_match %r!Successfully uninstalled q-1.0!, lines.last
+ assert_match %r{x-1 depends on q \(= 1.0\)}, lines.shift
+ assert_match %r{Successfully uninstalled q-1.0}, lines.last
end
def test_uninstall_doesnt_prompt_when_other_gem_satisfies_requirement
@@ -569,12 +569,12 @@ create_makefile '#{@spec.name}'
lines = ui.output.split("\n")
lines.shift
- assert_match %r!You have requested to uninstall the gem:!, lines.shift
+ assert_match %r{You have requested to uninstall the gem:}, lines.shift
lines.shift
lines.shift
- assert_match %r!r-1 depends on q \(= 1, development\)!, lines.shift
- assert_match %r!Successfully uninstalled q-1!, lines.last
+ assert_match %r{r-1 depends on q \(= 1, development\)}, lines.shift
+ assert_match %r{Successfully uninstalled q-1}, lines.last
end
def test_uninstall_prompt_only_lists_the_dependents_that_prevented_uninstallation
@@ -598,12 +598,12 @@ create_makefile '#{@spec.name}'
lines = ui.output.split("\n")
lines.shift
- assert_match %r!You have requested to uninstall the gem:!, lines.shift
+ assert_match %r{You have requested to uninstall the gem:}, lines.shift
lines.shift
lines.shift
- assert_match %r!s-1 depends on q \(= 1\)!, lines.shift
- assert_match %r!Successfully uninstalled q-1!, lines.last
+ assert_match %r{s-1 depends on q \(= 1\)}, lines.shift
+ assert_match %r{Successfully uninstalled q-1}, lines.last
end
def test_uninstall_no_permission