diff options
author | Georg Gadinger <nilsding@nilsding.org> | 2018-01-20 11:37:15 +0100 |
---|---|---|
committer | Georg Gadinger <nilsding@nilsding.org> | 2018-01-20 11:37:15 +0100 |
commit | 205844f55ba3270083fdfc943d966372e96799a8 (patch) | |
tree | 2a65fcbf89faeb7aed847e85a08a882535a7c963 | |
parent | fd855688efd14c5b85a62eb3afef639dbe9fc449 (diff) | |
download | bundler-205844f55ba3270083fdfc943d966372e96799a8.tar.gz |
Remove >= 2 tag; manually chmod a-w the dir
-rw-r--r-- | spec/commands/init_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/commands/init_spec.rb b/spec/commands/init_spec.rb index 5f0d5546da..9b5bd95814 100644 --- a/spec/commands/init_spec.rb +++ b/spec/commands/init_spec.rb @@ -64,12 +64,14 @@ RSpec.describe "bundle init" do end end - context "when the dir is not writable by the current user", :bundler => ">= 2" 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 FileUtils.mkdir bundled_app(subdir) - FileUtils.chmod "a-w", bundled_app(subdir) + # chmod a-w it + mode = File.stat(bundled_app(subdir)).mode ^ 0o222 + FileUtils.chmod mode, bundled_app(subdir) Dir.chdir bundled_app(subdir) do bundle :init |