[rubygems/rubygems] Bundler: avoid use of "can not" in spec literals

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

https://github.com/rubygems/rubygems/commit/73b5cf9bd1
This commit is contained in:
Takuya Noguchi 2022-08-23 04:11:47 +00:00 коммит произвёл git
Родитель 22a416a3bb
Коммит 7c784f0a67
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -42,7 +42,7 @@ RSpec.describe "bundle init" do
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

Просмотреть файл

@ -522,7 +522,7 @@ RSpec.describe "bundle remove" do
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
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