summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Wanninger <ajwann@ajwann.codes>2018-01-14 09:48:26 -0500
committerAdam Wanninger <ajwann@ajwann.codes>2018-01-25 10:01:13 -0500
commitc5e1be8e9ecfd82dc239a579d85902c95f7a6524 (patch)
treeecc7a80be2ca97c1c1343189026279c40a019ac3
parentf0e5f9c0e85fd4d1442939bd4517814e655a0c60 (diff)
downloadbundler-c5e1be8e9ecfd82dc239a579d85902c95f7a6524.tar.gz
'to the current user' should be 'by the current user'
-rw-r--r--lib/bundler/cli/doctor.rb2
-rw-r--r--spec/commands/doctor_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/cli/doctor.rb b/lib/bundler/cli/doctor.rb
index e7294eb285..64981c5b9b 100644
--- a/lib/bundler/cli/doctor.rb
+++ b/lib/bundler/cli/doctor.rb
@@ -117,7 +117,7 @@ module Bundler
if files_not_readable_or_writable.any?
Bundler.ui.warn "Files exist in the Bundler home that are not " \
- "readable/writable to the current user. These files are:\n - #{files_not_readable_or_writable.join("\n - ")}"
+ "readable/writable by the current user. These files are:\n - #{files_not_readable_or_writable.join("\n - ")}"
ok = false
end
diff --git a/spec/commands/doctor_spec.rb b/spec/commands/doctor_spec.rb
index ef33bedb57..c99cea68f6 100644
--- a/spec/commands/doctor_spec.rb
+++ b/spec/commands/doctor_spec.rb
@@ -69,7 +69,7 @@ RSpec.describe "bundle doctor" do
allow(File).to receive(:readable?).with(unwritable_file) { false }
expect { doctor.run }.not_to raise_error
expect(@stdout.string).to include(
- "Files exist in the Bundler home that are not readable/writable to the current user. These files are:\n - #{unwritable_file}"
+ "Files exist in the Bundler home that are not readable/writable by the current user. These files are:\n - #{unwritable_file}"
)
expect(@stdout.string).not_to include("No issues")
end