diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-03-10 15:39:37 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-03-10 17:19:44 +0100 |
commit | 05725a9bacc56ef5ff811dabadecce016383a886 (patch) | |
tree | 548ffe0bfbfaeb519b9672c8b8f29288e0c71a0f /spec/plugins/source_spec.rb | |
parent | 00da5215e90c6483728e077df4e90ab6cd34c35d (diff) | |
download | bundler-05725a9bacc56ef5ff811dabadecce016383a886.tar.gz |
Use thread safe method to find cwdconfig_location
And stub that in plugin's specs.
Diffstat (limited to 'spec/plugins/source_spec.rb')
-rw-r--r-- | spec/plugins/source_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/plugins/source_spec.rb b/spec/plugins/source_spec.rb index 14643e5c81..921ce738c5 100644 --- a/spec/plugins/source_spec.rb +++ b/spec/plugins/source_spec.rb @@ -21,7 +21,7 @@ RSpec.describe "bundler source plugin" do end G - allow(Bundler::SharedHelpers).to receive(:find_gemfile).and_return(bundled_app_gemfile) + allow(Bundler::SharedHelpers).to receive(:pwd).and_return(bundled_app) plugin_should_be_installed("bundler-source-psource") end @@ -76,7 +76,7 @@ RSpec.describe "bundler source plugin" do end it "installs the explicit one" do - allow(Bundler::SharedHelpers).to receive(:find_gemfile).and_return(bundled_app_gemfile) + allow(Bundler::SharedHelpers).to receive(:pwd).and_return(bundled_app) plugin_should_be_installed("another-psource") end @@ -102,7 +102,7 @@ RSpec.describe "bundler source plugin" do end it "installs the default one" do - allow(Bundler::SharedHelpers).to receive(:find_gemfile).and_return(bundled_app_gemfile) + allow(Bundler::SharedHelpers).to receive(:pwd).and_return(bundled_app) plugin_should_be_installed("bundler-source-psource") end end |