diff options
Diffstat (limited to 'spec/bundler/plugin_spec.rb')
-rw-r--r-- | spec/bundler/plugin_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/bundler/plugin_spec.rb b/spec/bundler/plugin_spec.rb index 8c95723bcc..9341b4ada3 100644 --- a/spec/bundler/plugin_spec.rb +++ b/spec/bundler/plugin_spec.rb @@ -237,7 +237,8 @@ RSpec.describe Bundler::Plugin do describe "#root" do context "in app dir" do before do - allow(Bundler::SharedHelpers).to receive(:find_gemfile).and_return(bundled_app_gemfile) + allow(Bundler::SharedHelpers).to receive(:pwd).and_return(bundled_app) + FileUtils.touch(bundled_app.join("Gemfile")) end it "returns plugin dir in app .bundle path" do @@ -247,7 +248,7 @@ RSpec.describe Bundler::Plugin do context "outside app dir" do before do - allow(Bundler::SharedHelpers).to receive(:find_gemfile).and_return(nil) + allow(Bundler::SharedHelpers).to receive(:pwd).and_return(root) end it "returns plugin dir in global bundle path" do |