summaryrefslogtreecommitdiff
path: root/spec/commands/package_spec.rb
diff options
context:
space:
mode:
authorCody Cutrer <cody@instructure.com>2014-09-08 22:26:08 -0600
committerCody Cutrer <cody@instructure.com>2014-12-23 11:04:38 -0700
commit288420b8069f07f0d11e8403128544ce0138a905 (patch)
treec9e9fb9a882dae87009a97a224e3db3e8617dc7c /spec/commands/package_spec.rb
parent17919e790cd8f6fb369d6afc81f0afec6fb5ad8b (diff)
downloadbundler-288420b8069f07f0d11e8403128544ce0138a905.tar.gz
implement all_platforms options for cache/package
so that a single cache directory can be used with multiple ruby versions
Diffstat (limited to 'spec/commands/package_spec.rb')
-rw-r--r--spec/commands/package_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/commands/package_spec.rb b/spec/commands/package_spec.rb
index e193e239ba..d87ebc56bf 100644
--- a/spec/commands/package_spec.rb
+++ b/spec/commands/package_spec.rb
@@ -42,6 +42,18 @@ describe "bundle package" do
expect(bundled_app("vendor/cache/rack-1.0.0.gem")).to exist
end
end
+
+ context "with --all-platforms" do
+ it "puts the gems in vendor/cache even for other rubies", :ruby => "2.1" do
+ gemfile <<-D
+ source "file://#{gem_repo1}"
+ gem 'rack', :platforms => :ruby_19
+ D
+
+ bundle "package --all-platforms"
+ expect(bundled_app("vendor/cache/rack-1.0.0.gem")).to exist
+ end
+ end
end
describe "bundle install with gem sources" do