summaryrefslogtreecommitdiff
path: root/spec/bundler/commands/check_spec.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2019-08-16 14:30:39 +0200
committerHiroshi SHIBATA <[email protected]>2019-09-18 18:26:33 +0900
commiteffacde2c0104935fd7258eac77f17684f724cd0 ()
tree6da95560e6fc9ca42591e70d5220580e30063bf3 /spec/bundler/commands/check_spec.rb
parent434af7303ceed8ee5318a31eb7da02b0ed557965 (diff)
[bundler/bundler] Merge all `bundle check --path` specs
And skip them all for bundler 3. https://.com/bundler/bundler/commit/b88936cdc2
-rw-r--r--spec/bundler/commands/check_spec.rb55
1 files changed, 30 insertions, 25 deletions
@@ -239,37 +239,42 @@ RSpec.describe "bundle check" do
end
context "--path", :bundler => "< 3" do
- before do
- gemfile <<-G
- source "#{file_uri_for(gem_repo1)}"
- gem "rails"
- G
- bundle "install --path vendor/bundle"
- FileUtils.rm_rf(bundled_app(".bundle"))
- end
- it "returns success" do
- bundle! "check --path vendor/bundle"
- expect(out).to include("The Gemfile's dependencies are satisfied")
end
- it "should write to .bundle/config" do
- bundle "check --path vendor/bundle"
- bundle! "check"
- end
- end
- context "--path vendor/bundle after installing gems in the default directory" do
- it "returns false" do
- install_gemfile <<-G
- source "#{file_uri_for(gem_repo1)}"
- gem "rails"
- G
- bundle "check --path vendor/bundle"
- expect(exitstatus).to eq(1) if exitstatus
- expect(err).to match(/The following gems are missing/)
end
end