diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2023-03-24 16:25:30 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-28 15:25:42 +0900 |
commit | 4d4743f7e35ea9d97cde10c9ca6fc35ac568bdb1 (patch) | |
tree | 4d55a81d9b4a70e827510971d7ad562d69a5ddfa /spec/bundler | |
parent | 674c960513b6c77aa4d6e35034441f90fe16a9da (diff) | |
download | ruby-4d4743f7e35ea9d97cde10c9ca6fc35ac568bdb1.tar.gz |
[rubygems/rubygems] Fix installing plugins in frozen mode
Plugins don't use a lockfile, so ignore frozen related settings.
https://github.com/rubygems/rubygems/commit/f17a3bb81f
Diffstat (limited to 'spec/bundler')
-rw-r--r-- | spec/bundler/plugins/install_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/bundler/plugins/install_spec.rb b/spec/bundler/plugins/install_spec.rb index efee5fdd23..aec131f2ee 100644 --- a/spec/bundler/plugins/install_spec.rb +++ b/spec/bundler/plugins/install_spec.rb @@ -22,6 +22,13 @@ RSpec.describe "bundler plugin install" do plugin_should_be_installed("foo") end + it "installs from rubygems source in frozen mode" do + bundle "plugin install foo --source #{file_uri_for(gem_repo2)}", :env => { "BUNDLE_DEPLOYMENT" => "true" } + + expect(out).to include("Installed plugin foo") + plugin_should_be_installed("foo") + end + it "installs from sources configured as Gem.sources without any flags" do bundle "plugin install foo", :env => { "BUNDLER_SPEC_GEM_SOURCES" => file_uri_for(gem_repo2).to_s } |