Skip to content

Commit

Permalink
Merge pull request #5862 from tnir/tnir-cannot-comments-bundler-spec
Browse files Browse the repository at this point in the history
Bundler: avoid use of "can not" in spec literals
  • Loading branch information
deivid-rodriguez committed Aug 23, 2022
2 parents c6c6d7a + 73b5cf9 commit f19c598
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bundler/spec/commands/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
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
Expand Down
4 changes: 2 additions & 2 deletions bundler/spec/commands/remove_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@
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"
Expand Down Expand Up @@ -574,7 +574,7 @@
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
Expand Down

0 comments on commit f19c598

Please sign in to comment.