[前][次][番号順一覧][スレッド一覧]

ruby-changes:73044

From: Takuya <ko1@a...>
Date: Tue, 23 Aug 2022 15:33:51 +0900 (JST)
Subject: [ruby-changes:73044] 7c784f0a67 (master): [rubygems/rubygems] Bundler: avoid use of "can not" in spec literals

https://git.ruby-lang.org/ruby.git/commit/?id=7c784f0a67

From 7c784f0a6775c09960ee4ec1b9a680aae30aced7 Mon Sep 17 00:00:00 2001
From: Takuya Noguchi <takninnovationresearch@g...>
Date: Tue, 23 Aug 2022 04:11:47 +0000
Subject: [rubygems/rubygems] Bundler: avoid use of "can not" in spec literals

Signed-off-by: Takuya Noguchi <takninnovationresearch@g...>

https://github.com/rubygems/rubygems/commit/73b5cf9bd1
---
 spec/bundler/commands/init_spec.rb   | 2 +-
 spec/bundler/commands/remove_spec.rb | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/spec/bundler/commands/init_spec.rb b/spec/bundler/commands/init_spec.rb
index 683a453c7d..eaf8fa170a 100644
--- a/spec/bundler/commands/init_spec.rb
+++ b/spec/bundler/commands/init_spec.rb
@@ -42,7 +42,7 @@ RSpec.describe "bundle init" do https://github.com/ruby/ruby/blob/trunk/spec/bundler/commands/init_spec.rb#L42
   context "when the dir is not writable by the current user" do
     let(:subdir) { "child_dir" }
 
-    it "notifies the user that it can not write to it" do
+    it "notifies the user that it cannot write to it" do
       FileUtils.mkdir bundled_app(subdir)
       # chmod a-w it
       mode = File.stat(bundled_app(subdir)).mode ^ 0o222
diff --git a/spec/bundler/commands/remove_spec.rb b/spec/bundler/commands/remove_spec.rb
index 093130f7d5..d757e0be4b 100644
--- a/spec/bundler/commands/remove_spec.rb
+++ b/spec/bundler/commands/remove_spec.rb
@@ -522,7 +522,7 @@ RSpec.describe "bundle remove" do https://github.com/ruby/ruby/blob/trunk/spec/bundler/commands/remove_spec.rb#L522
       end
     end
 
-    context "when gems can not be removed from other gemfile" do
+    context "when gems cannot be removed from other gemfile" do
       it "shows error" do
         create_file "Gemfile-other", <<-G
           gem "rails"; gem "rack"
@@ -574,7 +574,7 @@ RSpec.describe "bundle remove" do https://github.com/ruby/ruby/blob/trunk/spec/bundler/commands/remove_spec.rb#L574
     end
 
     context "when gem present in gemfiles but could not be removed from one from one of them" do
-      it "removes gem which can be removed and shows warning for file from which it can not be removed" do
+      it "removes gem which can be removed and shows warning for file from which it cannot be removed" do
         create_file "Gemfile-other", <<-G
           gem "rack"
         G
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]