summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Gadinger <nilsding@nilsding.org>2018-01-19 20:12:07 +0100
committerGeorg Gadinger <nilsding@nilsding.org>2018-01-19 20:12:07 +0100
commitfd855688efd14c5b85a62eb3afef639dbe9fc449 (patch)
tree038aad37b3596fc7e5586c512d73e021607690c4
parentf81ee89687d0764cd28355b6455fda84b59592f0 (diff)
downloadbundler-fd855688efd14c5b85a62eb3afef639dbe9fc449.tar.gz
Make writable spec pass on Ruby < 2.4
-rw-r--r--spec/commands/init_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/commands/init_spec.rb b/spec/commands/init_spec.rb
index 7a032c09aa..5f0d5546da 100644
--- a/spec/commands/init_spec.rb
+++ b/spec/commands/init_spec.rb
@@ -64,7 +64,7 @@ RSpec.describe "bundle init" do
end
end
- context "when the dir is not writable by the current user" do
+ context "when the dir is not writable by the current user", :bundler => ">= 2" do
let(:subdir) { "child_dir" }
it "notifies the user that it can not write to it" do
@@ -76,7 +76,7 @@ RSpec.describe "bundle init" do
end
expect(out).to include("directory is not writable")
- expect(bundled_app(subdir)).to be_empty
+ expect(Dir[bundled_app("#{subdir}/*")]).to be_empty
end
end