diff options
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 |