summaryrefslogtreecommitdiff
path: root/spec/bundler/commands/check_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/commands/check_spec.rb')
-rw-r--r--spec/bundler/commands/check_spec.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/bundler/commands/check_spec.rb b/spec/bundler/commands/check_spec.rb
index b5bb29ff41..78c2aef58b 100644
--- a/spec/bundler/commands/check_spec.rb
+++ b/spec/bundler/commands/check_spec.rb
@@ -86,11 +86,16 @@ RSpec.describe "bundle check" do
end
it "prints a generic error if gem git source is not checked out" do
- gemfile <<-G
+ build_git "foo", path: lib_path("foo")
+
+ bundle "config path vendor/bundle"
+
+ install_gemfile <<-G
source "https://gem.repo1"
- gem "rails", git: "[email protected]:rails/rails.git"
+ gem "foo", git: "#{lib_path("foo")}"
G
+ FileUtils.rm_rf bundled_app("vendor/bundle")
bundle :check, raise_on_error: false
expect(exitstatus).to eq 1
expect(err).to include("Bundler can't satisfy your Gemfile's dependencies.")