summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-10-20 14:19:32 -0500
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-03 09:29:56 +0900
commitd761a0f6ffd443b3440ac5144edcdd8054db9c7c (patch)
treedd14a3ed0a4733c8a074a3db6e97a520d714d88c /spec
parent2ccb3db5fbd642f7e70c38aca946b2e010ce338b (diff)
[bundler/bundler] [Package] Always resolve remotely for --all-platforms
https://github.com/bundler/bundler/commit/e45d2272ea
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/commands/package_spec.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/bundler/commands/package_spec.rb b/spec/bundler/commands/package_spec.rb
index 6f6d78d697..c22569171a 100644
--- a/spec/bundler/commands/package_spec.rb
+++ b/spec/bundler/commands/package_spec.rb
@@ -203,6 +203,25 @@ RSpec.describe "bundle package" do
bundle "package --all-platforms"
expect(bundled_app("vendor/cache/rack-1.0.0.gem")).to exist
end
+
+ it "does not attempt to install gems in without groups" do
+ install_gemfile! <<-G, forgotten_command_line_options(:without => "wo")
+ source "file:#{gem_repo1}"
+ gem "rack"
+ group :wo do
+ gem "weakling"
+ end
+ G
+
+ bundle! :package, "all-platforms" => true
+ expect(bundled_app("vendor/cache/weakling-0.0.3.gem")).to exist
+ expect(the_bundle).to include_gem "rack 1.0"
+ expect(the_bundle).not_to include_gem "weakling"
+
+ bundle! :install, forgotten_command_line_options(:without => "wo")
+ expect(the_bundle).to include_gem "rack 1.0"
+ expect(the_bundle).not_to include_gem "weakling"
+ end
end
context "with --frozen" do